diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-08-05 11:19:13 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-08-05 11:19:13 +0000 |
commit | e944404f04a517714ef87d68bb7a032f7f2328c4 (patch) | |
tree | b27e70d640b7b7721e7f6afa8e0eb52688f52225 /Makefile | |
parent | d7bf8738fc466a59afd92890b187f27ae1b37148 (diff) | |
download | mandoc-e944404f04a517714ef87d68bb7a032f7f2328c4.tar.gz mandoc-e944404f04a517714ef87d68bb7a032f7f2328c4.tar.zst mandoc-e944404f04a517714ef87d68bb7a032f7f2328c4.zip |
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@.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.430 2014/08/05 05:48:56 schwarze Exp $ +# $Id: Makefile,v 1.431 2014/08/05 11:19:13 schwarze Exp $ # # Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> # Copyright (c) 2011, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -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.h.post $(TESTSRCS) 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 |