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
|
#!/usr/bin/make -f
package=mhonarc
tmpdir=$(shell pwd)/debian/tmp
instdirs=$(tmpdir) \
$(tmpdir)/DEBIAN \
$(tmpdir)/usr/bin \
$(tmpdir)/usr/doc/mhonarc/examples \
$(tmpdir)/usr/lib/mhonarc
build: debian/control
touch build
clean: debian/control
if [ -f build ]; then rm -f build; fi
-rm -rf *~ debian/tmp debian/*~ debian/files*
binary-indep: debian/control checkroot build $(instdirs)
perl install.me batch
install debian/copyright $(tmpdir)/usr/doc/mhonarc/copyright
install examples/* $(tmpdir)/usr/doc/mhonarc/examples
dpkg-gencontrol
chown -R root.root $(tmpdir)
chmod -R g-ws $(tmpdir)
dpkg --build $(tmpdir) ..
binary-arch: checkroot build
$(checkdir)
# Below here is fairly generic really
binary: binary-indep binary-arch
checkroot: debian/control
test root = "`whoami`"
.PHONY: binary source diff clean checkroot
zapdirs:
-rm -rf $(tmpdir)
$(instdirs): zapdirs
install -d -m 755 $@
chmod g-s $@
|