4 subdirs_nobuild=backup sync-accounts scripts
6 packages_indep= chiark-backup chiark-scripts
7 packages_arch= chiark-rwbuffer
8 packages= $(packages_indep) $(packages_arch)
16 set -e; for s in $(subdirs_build); do $(MAKE) -C $$s all; done
22 set -e; for s in $(subdirs_build); do \
23 $(MAKE) -C $$s -i distclean || \
24 $(MAKE) -C $$s -f Makefile.in distclean; \
26 rm -rf *~ debian/tmp debian/*~ debian/files* debian/substvars*
32 set -e; for s in $(subdirs_build) $(subdirs_nobuild); do \
33 $(MAKE) -C $$s install install-docs install-examples \
36 varlib=$t/$$s/var/lib \
37 mandir=$t/$$s/usr/share/man; \
40 cp -a debian/tmp/sync-accounts/* debian/tmp/scripts/.
41 rm -r debian/tmp/sync-accounts
42 mv debian/tmp/scripts debian/tmp/chiark-scripts
43 mv debian/tmp/backup debian/tmp/chiark-backup
45 set -e; for p in $(packages); do \
46 install -d $t/$$p/DEBIAN $t/$$p/usr/share/doc/$$p; \
47 cp debian/copyright debian/changelog \
48 $t/$$p/usr/share/doc/$$p; \
50 $t/$$p/usr/share/doc/$$p/changelog.Debian.gz; \
51 gzip -9v $t/$$p/usr/share/doc/$$p/changelog; \
54 install -d $t/chiark-rwbuffer/usr/bin
55 install -d $t/chiark-rwbuffer/usr/share/man/man1
56 cd $t/cprogs/usr/bin && \
57 mv readbuffer writebuffer $t/chiark-rwbuffer/usr/bin
58 cd $t/cprogs/usr/share/man/man1 && \
59 mv readbuffer.1 writebuffer.1 $t/chiark-rwbuffer/usr/share/man/man1
60 gzip -9f $t/*/usr/share/man/man*/*
62 binary-hook-chiark-backup:
63 binary-hook-chiark-rwbuffer:
64 binary-hook-sync-accounts:
65 binary-hook-chiark-scripts:
68 set -e; for f in preinst postinst prerm postrm conffiles; do \
69 test -f debian/$p/$$f || continue; \
70 cp debian/$p/$$f $t/$p/DEBIAN/$$f; \
71 chmod u=rwX,go=rX $t/$p/DEBIAN/$$f; \
73 dpkg-gencontrol -p$p -P$t/$p -Tdebian/sv-$p
74 chown -R root.root debian/tmp
75 chmod -R g-ws debian/tmp
76 debian/rules binary-hook-$p
79 binary-indep: checkroot build binary-prep
80 set -e; for p in $(packages_indep); do \
81 debian/rules binary-one p=$$p; done
83 binary-arch: checkroot build binary-prep
85 dpkg-shlibdeps -Tdebian/sv-chiark-rwbuffer $t/chiark-rwbuffer/usr/bin/*
86 set -e; for p in $(packages_arch); \
87 do debian/rules binary-one p=$$p; done
90 test -f cprogs/writebuffer.c
93 # Below here is fairly generic really
95 binary: binary-indep binary-arch
98 @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
102 test root = "`whoami`"
104 .PHONY: binary binary-arch binary-indep clean checkroot