-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (39 loc) · 1.35 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
43
44
45
46
47
48
49
50
51
include Makefile.vars
PKGTARGETS = ${STAGING}${PREFIXDIR}/etc/mcloc.cfg \
${STAGING}${PREFIXDIR}/etc/mcloc_cocomo1_intermediate.cfg
all::
${MAKE} -C classes
${MAKE} -C apps
pkgprep:: ${PKGTARGETS}
${MAKE} -C classes $@
${MAKE} -C apps $@
${MAKE} -C docs $@
package: ${OSNAME}-pkg
darwin-pkg: pkgprep
pkgbuild --root staging --component-plist mcloc.plist --identifier net.mcplex.mcloc --version ${VERSION} mcloc-${VERSION}.pkg
freebsd-pkg: pkgprep
mkfbsdmnfst -r packaging/fbsd_manifest -s staging > staging/+MANIFEST
pkg create -o . -r staging -m staging
linux-pkg: pkgprep
if [ ! -d staging/DEBIAN ]; then mkdir staging/DEBIAN; fi
mkdebcontrol -r packaging/debcontrol -s staging > staging/DEBIAN/control
dpkg-deb -b --root-owner-group staging
dpkg-name -o staging.deb
${STAGING}${PREFIXDIR}/etc/mcloc.cfg: etc/mcloc.cfg
./install-sh -c -m 644 $< $@
${STAGING}${PREFIXDIR}/etc/mcloc_cocomo1_intermediate.cfg: etc/mcloc_cocomo1_intermediate.cfg
./install-sh -c -m 644 $< $@
clean::
${MAKE} -C classes $@
${MAKE} -C apps $@
${MAKE} -C docs $@
distclean:: clean
${MAKE} -C docs $@
rm -Rf ${STAGING}/*
rm -f Makefile.vars packaging/fbsd_manifest
rm -f mcloc-${VERSION}.pkg mcloc-*\.txz mcloc_*.deb mcloc.list
rm -Rf autom4te.cache config.log config.status
pkgprep-clean::
${MAKE} -C classes $@
${MAKE} -C apps $@
${MAKE} -C docs $@