* mdocml: Portability fix: * POSIX syntax is 'include Makefile.depend',
@ 2014-08-05 11:19 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2014-08-05 11:19 UTC (permalink / raw)
To: source
Log Message:
-----------
Portability fix:
* POSIX syntax is 'include Makefile.depend', not '.include "Makefile.depend"'
* gmake(1) runs the build rule for the included file (duh), so delete the rule
* consequently, we have to mark the 'depend' maintainer target .PHONY
* as it's now .PHONY anyway, drop some prerequisites that are now useless
Issue noticed by kristaps@.
Modified Files:
--------------
mdocml:
Makefile
Revision Data
-------------
Index: Makefile
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/Makefile,v
retrieving revision 1.430
retrieving revision 1.431
diff -LMakefile -LMakefile -u -p -r1.430 -r1.431
--- Makefile
+++ Makefile
@@ -369,7 +369,7 @@ install: base-install $(INSTALL_TARGETS)
www: $(WWW_OBJS) $(WWW_MANS)
-.include "Makefile.depend"
+include Makefile.depend
# === TARGETS CONTAINING SHELL COMMANDS ================================
@@ -442,7 +442,7 @@ www-install: www
$(INSTALL_DATA) mdocml.sha256 \
$(DESTDIR)$(HTDOCDIR)/snapshots/mdocml-$(VERSION).sha256
-Makefile.depend: $(SRCS) config.h Makefile
+depend: config.h
mkdep -f Makefile.depend $(CFLAGS) $(SRCS)
perl -e 'undef $$/; $$_ = <>; s|/usr/include/\S+||g; \
s|\\\n||g; s| +| |g; print;' Makefile.depend > Makefile.tmp
@@ -486,7 +486,8 @@ config.h: configure config.h.pre config.
rm -f config.log
CC="$(CC)" CFLAGS="$(CFLAGS)" VERSION="$(VERSION)" ./configure
-.PHONY: base-install clean cgi-install db-install install www-install
+.PHONY: base-install cgi-install db-install install www-install
+.PHONY: clean depend
.SUFFIXES: .1 .3 .5 .7 .8 .h
.SUFFIXES: .1.html .3.html .5.html .7.html .8.html .h.html
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-08-05 11:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-05 11:19 mdocml: Portability fix: * POSIX syntax is 'include Makefile.depend', schwarze
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).