mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-23 22:42:06 +00:00
b08d7c159e
A mispelling in the Makefile in the root directory prevented "make distclean" to go into subdirectories. In libsemanage/src/, semanageswig_python_exception.i was not cleaned by "make distclean" because the target did not use $(GENERATED) and this variable was being redefined in the Makefile. Fix these two bugs. Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
24 lines
642 B
Makefile
24 lines
642 B
Makefile
SUBDIRS=libsepol libselinux libsemanage sepolgen checkpolicy secilc policycoreutils # policy
|
|
PYSUBDIRS=libselinux libsemanage
|
|
DISTCLEANSUBDIRS=libselinux libsemanage
|
|
|
|
ifeq ($(DEBUG),1)
|
|
export CFLAGS = -g3 -O0 -gdwarf-2 -fno-strict-aliasing -Wall -Wshadow -Werror
|
|
export LDFLAGS = -g
|
|
endif
|
|
|
|
all install relabel clean test indent:
|
|
@for subdir in $(SUBDIRS); do \
|
|
(cd $$subdir && $(MAKE) $@) || exit 1; \
|
|
done
|
|
|
|
install-pywrap install-rubywrap swigify:
|
|
@for subdir in $(PYSUBDIRS); do \
|
|
(cd $$subdir && $(MAKE) $@) || exit 1; \
|
|
done
|
|
|
|
distclean:
|
|
@for subdir in $(DISTCLEANSUBDIRS); do \
|
|
(cd $$subdir && $(MAKE) $@) || exit 1; \
|
|
done
|