aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2020-03-13 17:31:44 +0000
committerIngo Schwarze <schwarze@openbsd.org>2020-03-13 17:31:44 +0000
commita66db6e540049cef813d1e4a20aa32c3dc755dc6 (patch)
treedcf881f0194819e06f4580552455a077c2c3edef /Makefile
parent83a7b814d91cedb0fa4c43fa8afea16c3d311369 (diff)
downloadmandoc-a66db6e540049cef813d1e4a20aa32c3dc755dc6.tar.gz
mandoc-a66db6e540049cef813d1e4a20aa32c3dc755dc6.tar.zst
mandoc-a66db6e540049cef813d1e4a20aa32c3dc755dc6.zip
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--Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index e0b9a66b..a8ee2c40 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.531 2020/03/13 15:32:28 schwarze Exp $
+# $Id: Makefile,v 1.532 2020/03/13 17:31:44 schwarze Exp $
#
# Copyright (c) 2011, 2013-2020 Ingo Schwarze <schwarze@openbsd.org>
# Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -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 \