summaryrefslogtreecommitdiff
path: root/Makefile.devel
blob: d958ab19d3fa1990304a4b7b691f5cff2b4607d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# This is the developer's makefile, not the user's makefile.
# Don't use it unless you know exactly what you do!

SHELL = /bin/sh
MAKE = make

all : configures src/config.h.in src/config.h.msvc doc/gperf.1

CONFIGURES = configure lib/configure src/configure tests/configure doc/configure

configures : $(CONFIGURES)

configure : configure.in aclocal.m4
	autoconf-2.52 -l .

lib/configure : lib/configure.in aclocal.m4
	cd lib && autoconf-2.52 -l ..

src/configure : src/configure.in aclocal.m4
	cd src && autoconf-2.52 -l ..

tests/configure : tests/configure.in aclocal.m4
	cd tests && autoconf-2.52 -l ..

doc/configure : doc/configure.in aclocal.m4
	cd doc && autoconf-2.52 -l ..

check-configures : $(CONFIGURES)
	set -e; for f in $(CONFIGURES); do bash -x -n $$f; done

src/config.h.in : src/configure.in aclocal.m4
	cd src && autoheader -l ..

src/config.h.msvc : src/config.h.in
	cp src/config.h.in src/config.h.msvc

doc/gperf.1 : force
	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

force :