Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: phony make targets



GNU make sometimes creates empty files with the names of phony targets such
as `FORCE' and `all'.  This should help in this case, I hope other forms of
make will just ignore it.  It's not a complete set but it includes the
targets I most frequently find created unnecessarily.

Index: Src/Makefile.in
===================================================================
RCS file: /home/pws/CVSROOT/projects/zsh/Src/Makefile.in,v
retrieving revision 1.9
diff -u -r1.9 Makefile.in
--- Src/Makefile.in	1999/12/22 23:17:29	1.9
+++ Src/Makefile.in	2000/01/02 17:47:49
@@ -39,6 +39,12 @@
 
 @DEFS_MK@
 
+.PHONY: all bin headers modules modobjs modules prep rm-modobjs-tmp \
+	FORCE mostlyclean-here clean-here distclean-here mostlyclean \
+	clean distclean realclean mostlyclean-modules clean-modules \
+	distclean-modules realclean-modules install.modules \
+	uninstall.modules proto
+
 sdir_src      = $(sdir)
 dir_src       = .
 
Index: Src/Makemod.in.in
===================================================================
RCS file: /home/pws/CVSROOT/projects/zsh/Src/Makemod.in.in,v
retrieving revision 1.4
diff -u -r1.4 Makemod.in.in
--- Src/Makemod.in.in	1999/12/21 15:18:27	1.4
+++ Src/Makemod.in.in	2000/01/02 17:50:53
@@ -40,6 +40,12 @@
 
 @DEFS_MK@
 
+.PHONY: all modobjs modules headers proto prep FORCE install uninstall \
+	install.bin uninstall.bin install.modules uninstall.modules \
+	install.bin-here uninstall.bin-here install.modules-here \
+	uninstall.modules-here mostlyclean-here clean-here distclean-here \
+	
+
 sdir_src      = $(sdir_top)/Src
 dir_src       = $(dir_top)/Src
 
Index: Doc/Makefile.in
===================================================================
RCS file: /home/pws/CVSROOT/projects/zsh/Doc/Makefile.in,v
retrieving revision 1.17
diff -u -r1.17 Makefile.in
--- Doc/Makefile.in	1999/12/21 15:18:27	1.17
+++ Doc/Makefile.in	2000/01/02 17:55:28
@@ -37,6 +37,10 @@
 
 @DEFS_MK@
 
+.PHONY: all everything install uninstall install.man uninstall.man \
+	install.info uninstall.info install.html uninstall.html \
+	clean-here distclean-here realclean-here
+
 MAKEINFO = makeinfo
 TEXI2DVI = texi2dvi
 DVIPS = dvips -D 300

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>



Messages sorted by: Reverse Date, Date, Thread, Author