summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index b2837405..a03aee37 100644
--- a/Makefile
+++ b/Makefile
@@ -18,12 +18,15 @@ $(TARGET): $(SUBDIRS:%=%.subdir-make)
#$(SRCDIR)/%: $(SUBDIR_BUILD_FIRST:%=%.subdir-buildfirst)
-%.subdir-buildfirst:
+%.subdir-buildfirst: $(SUBDIR_BUILD_LIB:%=%.subdir-buildlib)
@$(MAKE) $(MFLAGS) -C $*
-clean: $(SUBDIRS:%=%.subdir-clean) $(SUBDIR_BUILD_FIRST:%=%.subdir-cleanfirst)
+%.subdir-buildlib:
+ @$(MAKE) $(MFLAGS) -C $*
+
+clean: $(SUBDIRS:%=%.subdir-clean) $(SUBDIR_BUILD_FIRST:%=%.subdir-cleanfirst) $(SUBDIR_BUILD_LIB:%=%.subdir-cleanlib)
-%.subdir-clean %.subdir-cleanfirst:
+%.subdir-clean %.subdir-cleanfirst %.subdir-cleanlib:
@$(MAKE) $(MFLAGS) clean -C $*