-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
43 lines (31 loc) · 1.29 KB
/
Makefile
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
# Top-level makefile for doorlib for Unix.
# $Id$
include Makefile.global
OTHER = ChangeLog COPYING FILE_ID.DIZ.in INSTALL.in Makefile \
Makefile.global.in README aclocal.m4 \
config.h.in configure configure.in door.pc.in install-sh
TARFILE = ${PACKAGE}-${VERSION}.tar.bz2
###############################################################################
all depend:
for d in ${SUBDIRS}; do (cd $$d && ${MAKE} $@) || exit; done
install:
@if [ "`id -un`" != "root" ] ; then \
echo; echo " Must be root to install!"; echo; exit 3; \
fi
for d in ${SUBDIRS}; do (cd $$d && ${MAKE} $@) || exit; done
mkdir -p ${DESTDIR}${PKGDIR}
cp door.pc ${DESTDIR}${PKGDIR}
uninstall:
for d in ${SUBDIRS}; do (cd $$d && ${MAKE} $@) || exit; done
rm -f ${PKGDIR}/door.pc
dist tar: ${TARFILE}
clean:
rm -f .filelist core ${TARFILE} config.h
for d in ${SUBDIRS}; do (cd $$d && ${MAKE} $@) || exit; done;
${TARFILE}: .filelist
cd ..; ln -s ${PACKAGE} ${PACKAGE}-${VERSION} ; rm -f ${TARFILE}; \
${TAR} cvTf ./${PACKAGE}-${VERSION}/.filelist - | bzip2 >${TARFILE} ; \
rm -f ${PACKAGE}-${VERSION}
.filelist filelist:
(for f in ${OTHER} ;do echo ${PACKAGE}-${VERSION}/$$f; done) >.filelist
for d in ${SUBDIRS}; do (cd $$d && ${MAKE} filelist && cat filelist >>../.filelist) || exit; done;