summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLuke Shumaker <luke@HP-dv6426us-u904.(none)>2009-11-23 21:14:21 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-06-26 00:30:18 -0600
commita21c95f5e5b9b45f440813801ed413825300aa2b (patch)
treeea89bd09f2b069bbea29f236b072ac8c7099011b /Makefile
parent419801528066ea61546cde30c9f9f7f953e823b5 (diff)
I'm really not sure, these are uncommited changes, and I haven't touched it in a while.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 10 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 9662463..0b7b8f3 100644
--- a/Makefile
+++ b/Makefile
@@ -42,7 +42,6 @@ commit : distclean
%/Makefile.in : Makefile.in %/; cp $< $@
distclean-mods = $(addprefix distclean-,$(mods))
-#.PHONY : distclean $(distclean-mods)
distclean : $(distclean-mods)
distclean-% : % %/
$(RM) -r $<-build/
@@ -56,11 +55,16 @@ complete-% : %/
find $< -type d -exec cp Makefile.in '{}' \;
%-build : %/; $(MKDIR) $@
-%-build/Makefile : %-build complete-%
- cd $<; ../$(patsubst %-build,%/,$<)/configure $(CONFIG)
+%-build/Makefile : Makefiles-% ; :
+Makefiles-% : %-build complete-%
+ if [ ! -e "$</Makefile" ]; then \
+ cd $<; \
+ ../$(patsubst %-build,%/,$<)/configure $(CONFIG); \
+ fi
$(MAKE) -C $< Makefiles
-build-% : %-build %-build/Makefile; $(MAKE) -C $<
-install-% : %-build %-build/Makefile; $(MAKE) -C $< install
-clean-% : %-build %-build/Makefile; $(MAKE) -C $< clean
+build-% : %-build %-build/Makefile; $(MAKE) -C $<
+install-% : %-build %-build/Makefile; $(MAKE) -C $< install
+uninstall-% : %-build %-build/Makefile; $(MAKE) -C $< uninstall
+clean-% : %-build %-build/Makefile; $(MAKE) -C $< clean