summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLuke Shumaker <luke@HP-dv6426us-u904.(none)>2009-10-26 22:35:57 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-06-26 00:30:18 -0600
commitd454c2682afbfd3e1aa98fd1be585edacd80b3c7 (patch)
tree6e5c7965fde5e894679a0be67d90ac1784512fb3 /Makefile
parentaaa9df8686991d41081c6d32495d6ba7d30b6758 (diff)
add .gitignore
clean up Makefile a bit add comments on `bashisms' in configure Add a `make commit' bit. Won't really be usefull to others, but is way more convenient for me than make distclean git add -A git commit -a
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 10 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 71a3942..260b95f 100644
--- a/Makefile
+++ b/Makefile
@@ -30,16 +30,20 @@ mods = $(filter-out %-build,\
.PHONY : all
all :
+.PHONY : commit
+commit : distclean
+ git add -A
+ git commit -a
+
.SECONDARY:
%/COPYING : COPYING %/; cp $< $@
%/configure : configure %/; cp $< $@
%/Makefile.in : Makefile.in %/; cp $< $@
-clean-mods = $(addprefix clean-,$(mods))
-distclean-mods = $(addprefix distclean-,$(mods))
+distclean-mods = $(addprefix distclean-,$(mods))
-.PHONY : distclean
+.PHONY : distclean $(distclean-mods)
distclean : $(distclean-mods)
distclean-% : % %/
$(RM) -r $<-build/
@@ -57,10 +61,7 @@ complete-% : %/
cd $<; ../$(patsubst %-build,%/,$<)/configure
$(MAKE) -C $< Makefiles
-build-% : %-build complete-% %-build/Makefile
- $(MAKE) -C $<
-install-% : %-build build-%
- $(MAKE) -C $< install
-clean-% : %-build
- $(MAKE) -C $< clean
+build-% : %-build complete-% %-build/Makefile; $(MAKE) -C $<
+install-% : %-build; $(MAKE) -C $< install
+clean-% : %-build; $(MAKE) -C $< clean