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 doc/gperf.1
8
9CONFIGURES = configure lib/configure src/configure tests/configure doc/configure
10
11configures : $(CONFIGURES)
12
13configure : configure.in aclocal.m4
14 autoconf -l .
15
16lib/configure : lib/configure.in aclocal.m4
17 cd lib && autoconf -l ..
18
19src/configure : src/configure.in aclocal.m4
20 cd src && autoconf -l ..
21
22tests/configure : tests/configure.in aclocal.m4
23 cd tests && autoconf -l ..
24
25doc/configure : doc/configure.in aclocal.m4
26 cd doc && autoconf -l ..
27
28check-configures : $(CONFIGURES)
29 set -e; for f in $(CONFIGURES); do bash -x -n $$f; done
30
31src/config.h.in : src/configure.in aclocal.m4
32 cd src && autoheader -l ..
33
34doc/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
37force :
38
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 doc/gperf.1
8
9CONFIGURES = configure lib/configure src/configure tests/configure doc/configure
10
11configures : $(CONFIGURES)
12
13configure : configure.in aclocal.m4
14 autoconf -l .
15
16lib/configure : lib/configure.in aclocal.m4
17 cd lib && autoconf -l ..
18
19src/configure : src/configure.in aclocal.m4
20 cd src && autoconf -l ..
21
22tests/configure : tests/configure.in aclocal.m4
23 cd tests && autoconf -l ..
24
25doc/configure : doc/configure.in aclocal.m4
26 cd doc && autoconf -l ..
27
28check-configures : $(CONFIGURES)
29 set -e; for f in $(CONFIGURES); do bash -x -n $$f; done
30
31src/config.h.in : src/configure.in aclocal.m4
32 cd src && autoheader -l ..
33
34doc/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
37force :
38