1 | SHELL = /bin/sh |
---|
2 | |
---|
3 | prefix=@prefix@ |
---|
4 | exec_prefix=@exec_prefix@ |
---|
5 | datadir=@datadir@ |
---|
6 | sysconfdir=@sysconfdir@ |
---|
7 | sbindir=@sbindir@ |
---|
8 | |
---|
9 | includedir=${prefix}/include |
---|
10 | mandir=${prefix}/man |
---|
11 | bindir=${exec_prefix}/bin |
---|
12 | libdir=${exec_prefix}/lib |
---|
13 | |
---|
14 | srcdir=@srcdir@ |
---|
15 | top_srcdir=@top_srcdir@ |
---|
16 | ENSUREDIR=${srcdir}/ensure-dir.sh |
---|
17 | INSTALL=@INSTALL@ |
---|
18 | |
---|
19 | SUBDIRS=lib libdyn clients server zhm zwgc |
---|
20 | |
---|
21 | all: |
---|
22 | for i in ${SUBDIRS}; do (cd $$i; ${MAKE} $@) || exit 1; done |
---|
23 | |
---|
24 | check clean: |
---|
25 | for i in ${SUBDIRS}; do (cd $$i; ${MAKE} $@) || exit 1; done |
---|
26 | |
---|
27 | install: |
---|
28 | ${ENSUREDIR} ${DESTDIR}${prefix} 755 |
---|
29 | ${ENSUREDIR} ${DESTDIR}${exec_prefix} 755 |
---|
30 | ${ENSUREDIR} ${DESTDIR}${bindir} 755 |
---|
31 | ${ENSUREDIR} ${DESTDIR}${libdir} 755 |
---|
32 | ${ENSUREDIR} ${DESTDIR}${datadir} 755 |
---|
33 | ${ENSUREDIR} ${DESTDIR}${datadir}/zephyr 755 |
---|
34 | ${ENSUREDIR} ${DESTDIR}${sysconfdir} 755 |
---|
35 | ${ENSUREDIR} ${DESTDIR}${sysconfdir}/zephyr/acl 755 |
---|
36 | ${ENSUREDIR} ${DESTDIR}${sbindir} 755 |
---|
37 | ${ENSUREDIR} ${DESTDIR}${includedir} 755 |
---|
38 | ${ENSUREDIR} ${DESTDIR}${includedir}/zephyr 755 |
---|
39 | ${ENSUREDIR} ${DESTDIR}${mandir} 755 |
---|
40 | ${ENSUREDIR} ${DESTDIR}${mandir}/man1 755 |
---|
41 | ${ENSUREDIR} ${DESTDIR}${mandir}/man3 755 |
---|
42 | ${ENSUREDIR} ${DESTDIR}${mandir}/man8 755 |
---|
43 | ${INSTALL} -m 644 ${srcdir}/h/zephyr/mit-copyright.h \ |
---|
44 | ${DESTDIR}${includedir}/zephyr |
---|
45 | ${INSTALL} -m 644 ${srcdir}/h/zephyr/zephyr.h \ |
---|
46 | ${DESTDIR}${includedir}/zephyr |
---|
47 | ${INSTALL} -m 644 h/zephyr/zephyr_err.h ${DESTDIR}${includedir}/zephyr |
---|
48 | for i in ${SUBDIRS}; do (cd $$i; ${MAKE} $@) || exit 1; done |
---|
49 | |
---|
50 | .PHONY: all check install clean |
---|
51 | |
---|