diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2020-03-13 17:31:44 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2020-03-13 17:31:44 +0000 |
commit | cbd66f9b4ea3a04b5f24ff52b4c7e425468a202b (patch) | |
tree | 5b13b7774b628975f26da91ca8034acf5a88bd55 /Makefile | |
parent | e904e5abe5626e053fa0db3dbf1d46d5c4801d8b (diff) | |
download | mandoc-cbd66f9b4ea3a04b5f24ff52b4c7e425468a202b.tar.gz |
Make the "make depend" maintainer target more convenient
by having it run ./configure with native fts and ohash disabled.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -401,6 +401,7 @@ clean: rm -f demandoc $(DEMANDOC_OBJS) rm -f soelim $(SOELIM_OBJS) rm -f $(WWW_MANS) $(WWW_INCS) mandoc*.tar.gz mandoc*.sha256 + rm -f Makefile.tmp1 Makefile.tmp2 rm -rf *.dSYM base-install: mandoc demandoc soelim @@ -545,11 +546,13 @@ www-install: www $(INSTALL_DATA) $(WWW_INCS) $(HTDOCDIR)/includes depend: config.h - mkdep -f Makefile.depend $(CFLAGS) $(SRCS) + ./configure -depend + mkdep -f Makefile.tmp1 $(CFLAGS) $(SRCS) perl -e 'undef $$/; $$_ = <>; s|/usr/include/\S+||g; \ s|\\\n||g; s| +| |g; s| $$||mg; print;' \ - Makefile.depend > Makefile.tmp - mv Makefile.tmp Makefile.depend + Makefile.tmp1 > Makefile.tmp2 + rm Makefile.tmp1 + mv Makefile.tmp2 Makefile.depend regress-distclean: @find regress \ |