@@ -1,5 +1,9 @@
-all:
- $(MAKE) -C src all
+SUBDIRS = include src utils man
+
+all install relabel clean distclean indent:
+ @for subdir in $(SUBDIRS); do \
+ (cd $$subdir && $(MAKE) $@) || exit 1; \
+ done
swigify:
$(MAKE) -C src swigify
@@ -10,28 +14,11 @@ pywrap:
rubywrap:
$(MAKE) -C src rubywrap
-install:
- $(MAKE) -C include install
- $(MAKE) -C src install
- $(MAKE) -C man install
- $(MAKE) -C utils install
-
install-pywrap:
$(MAKE) -C src install-pywrap
install-rubywrap:
$(MAKE) -C src install-rubywrap
-relabel:
- $(MAKE) -C src relabel
-
-clean distclean:
- $(MAKE) -C src $@
- $(MAKE) -C tests $@
-
-indent:
- $(MAKE) -C src $@
- $(MAKE) -C include $@
-
test: all
$(MAKE) -C tests test
@@ -2,7 +2,7 @@
PREFIX ?= /usr
INCDIR ?= $(PREFIX)/include/semanage
-all:
+all relabel clean distclean:
install: all
test -d $(DESTDIR)$(INCDIR) || install -m 755 -d $(DESTDIR)$(INCDIR)
@@ -7,7 +7,7 @@ MAN5SUBDIR ?= man5
MAN3DIR ?= $(MANDIR)/$(MAN3SUBDIR)
MAN5DIR ?= $(MANDIR)/$(MAN5SUBDIR)
-all:
+all relabel clean distclean indent:
install: all
mkdir -p $(DESTDIR)$(MAN3DIR)