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
4SHELL = /bin/sh
5MAKE = make
6
7all : configures src/config.h.in src/config.h.msvc src/config.h_vms doc/gperf.1
8
9CONFIGURES = configure lib/configure src/configure tests/configure doc/configure
10
11configures : $(CONFIGURES)
12
13configure : configure.ac aclocal.m4
14	autoconf -I .
15
16lib/configure : lib/configure.ac aclocal.m4
17	cd lib && autoconf -I ..
18
19src/configure : src/configure.ac aclocal.m4
20	cd src && autoconf -I ..
21
22tests/configure : tests/configure.ac aclocal.m4
23	cd tests && autoconf -I ..
24
25doc/configure : doc/configure.ac aclocal.m4
26	cd doc && autoconf -I ..
27
28check-configures : $(CONFIGURES)
29	set -e; for f in $(CONFIGURES); do bash -x -n $$f; done
30
31src/config.h.in : src/configure.ac aclocal.m4
32	cd src && autoheader -I ..
33
34src/config.h.msvc : src/config.h.in
35	cp src/config.h.in src/config.h.msvc
36
37src/config.h_vms : src/config.h.in
38	cp src/config.h.in src/config.h_vms
39
40doc/gperf.1 : force
41	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
42
43force :
44
45