summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-08-05 11:19:13 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-08-05 11:19:13 +0000
commite35f29f762b02cef57c819210ca7db2a0afc30a8 (patch)
treef96fd53f954e8edd7df737f74bfb8906ca709f4e /Makefile
parente1fc6d68ebbf78198e7f6e20c2323077fb5eba82 (diff)
downloadmandoc-e35f29f762b02cef57c819210ca7db2a0afc30a8.tar.gz
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--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 276eb59f..ca08821b 100644
--- a/Makefile
+++ b/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.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