summaryrefslogtreecommitdiff
path: root/Makefile.in
blob: 017ef25fa63f3b24bfe495237d89bd548ce493dd (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
SHELL = /bin/sh

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

includedir=${prefix}/include
mandir=${prefix}/man
bindir=${exec_prefix}/bin
libdir=${exec_prefix}/lib

srcdir=@srcdir@
top_srcdir=@top_srcdir@
ENSUREDIR=${srcdir}/ensure-dir.sh
INSTALL=@INSTALL@

SUBDIRS=lib libdyn clients server zhm zwgc

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

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

install:
	${ENSUREDIR} ${DESTDIR}${prefix} 755
	${ENSUREDIR} ${DESTDIR}${exec_prefix} 755
	${ENSUREDIR} ${DESTDIR}${bindir} 755
	${ENSUREDIR} ${DESTDIR}${libdir} 755
	${ENSUREDIR} ${DESTDIR}${datadir} 755
	${ENSUREDIR} ${DESTDIR}${datadir}/zephyr 755
	${ENSUREDIR} ${DESTDIR}${sysconfdir} 755
	${ENSUREDIR} ${DESTDIR}${sysconfdir}/zephyr/acl 755
	${ENSUREDIR} ${DESTDIR}${sbindir} 755
	${ENSUREDIR} ${DESTDIR}${includedir} 755
	${ENSUREDIR} ${DESTDIR}${includedir}/zephyr 755
	${ENSUREDIR} ${DESTDIR}${mandir} 755
	${ENSUREDIR} ${DESTDIR}${mandir}/man1 755
	${ENSUREDIR} ${DESTDIR}${mandir}/man3 755
	${ENSUREDIR} ${DESTDIR}${mandir}/man8 755
	${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 h/zephyr/zephyr_err.h ${DESTDIR}${includedir}/zephyr
	for i in ${SUBDIRS}; do (cd $$i; ${MAKE} $@) || exit 1; done

.PHONY: all check install clean