Update make clean instructions and .gitgnore files
cover Update make clean instructions and .gitgnore files
Hello,
While working on testing the selinux-userspace project on several configurations (compiler, compiler flags, libc, Python version...) it is quite convenient that "make clean" leaves the directory clean, both from a git prespective ("git ls-files --ignored --others --exclude-standard") and from a build point of view (all generated and cached files are removed).
These patches update the relevant .gitignore and Makefile files to achieve this.
Cheers,
Nicolas
Nicolas Iooss (3):
Update .gitignore files
sepolgen: remove additional files when cleaning
libsepol: remove libsepol.map when cleaning
libselinux/utils/.gitignore | 5 +++++ libsemanage/tests/.gitignore | 1 + libsepol/src/Makefile | 2 +- libsepol/tests/.gitignore | 1 + libsepol/tests/policies/.gitignore | 3 +++ sepolgen/src/sepolgen/Makefile | 3 +-- sepolgen/tests/.gitignore | 4 ++++ sepolgen/tests/Makefile | 3 +++ 8 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 libsemanage/tests/.gitignore create mode 100644 libsepol/tests/.gitignore create mode 100644 libsepol/tests/policies/.gitignore create mode 100644 sepolgen/tests/.gitignore
Signature · 1 line
2.8.2
PATCH 1/3 Update .gitignore files
--- libselinux/utils/.gitignore | 5 +++++ libsemanage/tests/.gitignore | 1 + libsepol/tests/.gitignore | 1 + libsepol/tests/policies/.gitignore | 3 +++ sepolgen/tests/.gitignore | 4 ++++ 5 files changed, 14 insertions(+) create mode 100644 libsemanage/tests/.gitignore create mode 100644 libsepol/tests/.gitignore create mode 100644 libsepol/tests/policies/.gitignore create mode 100644 sepolgen/tests/.gitignore
libselinux/utils/.gitignore +5 -0
@@ -14,7 +14,12 @@ getseuser matchpathcon policyvers sefcontext_compile +selabel_digest +selabel_lookup +selabel_lookup_best_match +selabel_partial_match selinux_check_securetty_context +selinux_restorecon selinuxenabled selinuxexeccon setenforce
libsemanage/tests/.gitignore new file +1 -0
@@ -0,0 +1 @@ +libsemanage-tests
libsepol/tests/.gitignore new file +1 -0
@@ -0,0 +1 @@ +libsepol-tests
libsepol/tests/policies/.gitignore new file +3 -0
@@ -0,0 +1,3 @@ +test-downgrade/ +test-*/*.mls +test-*/*.std
sepolgen/tests/.gitignore new file +4 -0
@@ -0,0 +1,4 @@ +module_compile_test.fc +module_compile_test.if +output +tmp/
Signature · 1 line
2.8.2
PATCH 2/3 sepolgen: remove additional files when cleaning
In reply to Nicolas IoossRemove the files created by Python 3 and refpolicy building process.
--- sepolgen/src/sepolgen/Makefile | 3 +-- sepolgen/tests/Makefile | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-)
sepolgen/src/sepolgen/Makefile +1 -2
@@ -11,5 +11,4 @@ install: all clean: rm -f parser.out parsetab.py rm -f *~ *.pyc - - + rm -rf __pycache__
sepolgen/tests/Makefile +3 -0
@@ -4,8 +4,11 @@ clean: rm -f *~ *.pyc rm -f parser.out parsetab.py rm -f out.txt + rm -f module_compile_test.fc + rm -f module_compile_test.if rm -f module_compile_test.pp rm -f output + rm -rf __pycache__ tmp test: $(PYTHON) run-tests.py
Signature · 1 line
2.8.2
PATCH 3/3 libsepol: remove libsepol.map when cleaning
In reply to Nicolas Iooss--- libsepol/src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
libsepol/src/Makefile +1 -1
@@ -76,7 +76,7 @@ relabel: /sbin/restorecon $(SHLIBDIR)/$(LIBSO) clean: - -rm -f $(LIBPC) $(OBJS) $(LOBJS) $(LIBA) $(LIBSO) $(TARGET) $(CIL_GENERATED) + -rm -f $(LIBPC) $(LIBMAP) $(OBJS) $(LOBJS) $(LIBA) $(LIBSO) $(TARGET) $(CIL_GENERATED) indent: ../../scripts/Lindent $(wildcard *.[ch])
Signature · 1 line
2.8.2
Stephen Smalley
AppliedQuoted 11 lines · Nicolas Iooss
Hello,
While working on testing the selinux-userspace project on several configurations (compiler, compiler flags, libc, Python version...) it is quite convenient that "make clean" leaves the directory clean, both from a git prespective ("git ls-files --ignored --others --exclude-standard") and from a build point of view (all generated and cached files are removed).
These patches update the relevant .gitignore and
Makefilefiles to achieve this.
Thanks, applied.
Quoted 23 lines
Cheers,
NicolasNicolas Iooss (3):
Update .gitignore files
sepolgen: remove additional files when cleaning
libsepol: remove libsepol.map when cleaninglibselinux/utils/.gitignore | 5 +++++ libsemanage/tests/.gitignore | 1 + libsepol/src/Makefile | 2 +- libsepol/tests/.gitignore | 1 + libsepol/tests/policies/.gitignore | 3 +++ sepolgen/src/sepolgen/Makefile | 3 +-- sepolgen/tests/.gitignore | 4 ++++ sepolgen/tests/Makefile | 3 +++ 8 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 libsemanage/tests/.gitignore create mode 100644 libsepol/tests/.gitignore create mode 100644 libsepol/tests/policies/.gitignore create mode 100644 sepolgen/tests/.gitignore