Ignore egg-info directories and clean them

Test .gitignore and make clean distclean
    error: missing .gitignore entry for libselinux/src/selinux.egg-info/
    error: missing .gitignore entry for python/sepolicy/sepolicy.egg-info/
    Error: Process completed with exit code 1.

    error: "make clean distclean" did not remove libselinux/src/selinux.egg-info/PKG-INFO
    error: "make clean distclean" did not remove libselinux/src/selinux.egg-info/SOURCES.txt
    error: "make clean distclean" did not remove libselinux/src/selinux.egg-info/dependency_links.txt
    error: "make clean distclean" did not remove libselinux/src/selinux.egg-info/top_level.txt
    error: "make clean distclean" did not remove python/sepolicy/sepolicy.egg-info/PKG-INFO
    error: "make clean distclean" did not remove python/sepolicy/sepolicy.egg-info/SOURCES.txt
    error: "make clean distclean" did not remove python/sepolicy/sepolicy.egg-info/dependency_links.txt
    error: "make clean distclean" did not remove python/sepolicy/sepolicy.egg-info/top_level.txt
    Error: Process completed with exit code 1.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Acked-by: James Carter <jwcart2@gmail.com>
This commit is contained in:
Christian Göttsche 2022-08-08 19:36:55 +02:00 committed by James Carter
parent f304db813e
commit c2d58b378b
4 changed files with 4 additions and 2 deletions

View file

@ -1,3 +1,4 @@
selinux.py selinux.py
selinuxswig_python_wrap.c selinuxswig_python_wrap.c
selinuxswig_ruby_wrap.c selinuxswig_ruby_wrap.c
selinux.egg-info/

View file

@ -201,7 +201,7 @@ relabel:
clean-pywrap: clean-pywrap:
-rm -f $(SWIGLOBJ) $(SWIGSO) $(AUDIT2WHYLOBJ) $(AUDIT2WHYSO) -rm -f $(SWIGLOBJ) $(SWIGSO) $(AUDIT2WHYLOBJ) $(AUDIT2WHYSO)
$(PYTHON) setup.py clean $(PYTHON) setup.py clean
-rm -rf build *~ \#* *pyc .#* -rm -rf build *~ \#* *pyc .#* selinux.egg-info/
clean-rubywrap: clean-rubywrap:
-rm -f $(SWIGRUBYLOBJ) $(SWIGRUBYSO) -rm -f $(SWIGRUBYLOBJ) $(SWIGRUBYSO)

View file

@ -1,3 +1,4 @@
build build
tmp tmp
*.bak *.bak
sepolicy.egg-info/

View file

@ -18,7 +18,7 @@ python-build:
clean: clean:
$(PYTHON) setup.py clean $(PYTHON) setup.py clean
-rm -rf build *~ \#* *pyc .#* -rm -rf build *~ \#* *pyc .#* sepolicy.egg-info/
sepolgen: sepolgen:
ln -sf sepolicy sepolgen ln -sf sepolicy sepolgen