Merge from vendor branch LIBARCHIVE:
[dragonfly.git] / contrib / gperf / Makefile.devel
1 # This is the developer's makefile, not the user's makefile.
2 # Don't use it unless you know exactly what you do!
3
4 SHELL = /bin/sh
5 MAKE = make
6
7 all : configures src/config.h.in doc/gperf.1
8
9 CONFIGURES = configure lib/configure src/configure tests/configure doc/configure
10
11 configures : $(CONFIGURES)
12
13 configure : configure.in aclocal.m4
14         autoconf -l .
15
16 lib/configure : lib/configure.in aclocal.m4
17         cd lib && autoconf -l ..
18
19 src/configure : src/configure.in aclocal.m4
20         cd src && autoconf -l ..
21
22 tests/configure : tests/configure.in aclocal.m4
23         cd tests && autoconf -l ..
24
25 doc/configure : doc/configure.in aclocal.m4
26         cd doc && autoconf -l ..
27
28 check-configures : $(CONFIGURES)
29         set -e; for f in $(CONFIGURES); do bash -x -n $$f; done
30
31 src/config.h.in : src/configure.in aclocal.m4
32         cd src && autoheader -l ..
33
34 doc/gperf.1 : force
35         prog=`PATH=build/src:src:$$PATH which gperf`; if test -n "$$prog"; then doc/help2man --name='generate a perfect hash function from a key set' --section=1 $$prog > doc/gperf.1; fi
36
37 force :
38