summaryrefslogtreecommitdiff
path: root/Makefile.in
blob: a21ce152593aec7761be82fb2575b4627fd174a6 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
SHELL = /bin/sh

prefix=@prefix@
exec_prefix=@exec_prefix@
datadir=@datadir@
sysconfdir=@sysconfdir@
sbindir=@sbindir@
datarootdir=@datarootdir@

includedir=@includedir@
mandir=@mandir@
bindir=@bindir@
libdir=@libdir@

srcdir=@srcdir@
top_srcdir=@top_srcdir@
INSTALL=@INSTALL@

SUBDIRS=lib clients server zhm zwgc

build:
	$(MAKE) all

h/zephyr_version.h: always
	sh -x ${srcdir}/new_vers.sh $(top_srcdir)

clean: clean_version

clean_version:
	$(RM) h/zephyr_version.h

all: h/zephyr_version.h

all check clean:
	for i in ${SUBDIRS}; do (cd $$i; ${MAKE} $@) || exit 1; done

install:
	${INSTALL} -d ${DESTDIR}${prefix}
	${INSTALL} -d ${DESTDIR}${exec_prefix}
	${INSTALL} -d ${DESTDIR}${bindir}
	${INSTALL} -d ${DESTDIR}${libdir}
	${INSTALL} -d ${DESTDIR}${libdir}/pkgconfig
	${INSTALL} -d ${DESTDIR}${datadir}
	${INSTALL} -d ${DESTDIR}${datadir}/zephyr
	${INSTALL} -d ${DESTDIR}${sysconfdir}
	${INSTALL} -d ${DESTDIR}${sysconfdir}/zephyr/acl
	${INSTALL} -d ${DESTDIR}${sbindir}
	${INSTALL} -d ${DESTDIR}${includedir}
	${INSTALL} -d ${DESTDIR}${includedir}/zephyr
	${INSTALL} -d ${DESTDIR}${mandir}
	${INSTALL} -d ${DESTDIR}${mandir}/man1
	${INSTALL} -d ${DESTDIR}${mandir}/man3
	${INSTALL} -d ${DESTDIR}${mandir}/man8
	${INSTALL} -m 644 ${srcdir}/h/zephyr/mit-copyright.h \
		${DESTDIR}${includedir}/zephyr
	${INSTALL} -m 644 ${srcdir}/h/zephyr/zephyr.h \
		${DESTDIR}${includedir}/zephyr
	${INSTALL} -m 644 zephyr.pc ${DESTDIR}${libdir}/pkgconfig
	${INSTALL} -m 644 h/zephyr/zephyr_err.h ${DESTDIR}${includedir}/zephyr
	for i in ${SUBDIRS}; do (cd $$i; ${MAKE} $@) || exit 1; done

always:

.PHONY: all build check install clean clean_version always