mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-22 22:12:16 +00:00
142209161f
This does 2 things. It does a little cleanup by de-duplicating code. It also adds a new target 'all' as the default target. Previous the default target was 'install'. There was no 'all' target. This patch should allow one to build all of the tree as a non-root user. Signed-off-by: Eric Paris <eparis@redhat.com> Acked-by: Dan Walsh <dwalsh@redhat.com>
24 lines
618 B
Makefile
24 lines
618 B
Makefile
SUBDIRS=libsepol libselinux libsemanage sepolgen checkpolicy policycoreutils # policy
|
|
PYSUBDIRS=libselinux libsemanage
|
|
DISTCLEANSUBIDRS=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 swigify:
|
|
@for subdir in $(PYSUBDIRS); do \
|
|
(cd $$subdir && $(MAKE) $@) || exit 1; \
|
|
done
|
|
|
|
distclean:
|
|
@for subdir in $(DISTCLEANSUBDIRS); do \
|
|
(cd $$subdir && $(MAKE) $@) || exit 1; \
|
|
done
|