#!/usr/bin/make -f # debian/rule for gap-gdat # GNU copyright 2002 by Bill Allombert # Based on a sample by # GNU copyright 1997 by Joey Hess. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 build-arch: build-indep: build: build-arch build-indep clean: dh_testdir dh_testroot rm -f build-arch-stamp build-indep-stamp configure-stamp dh_clean install: build dh_testdir dh_testroot dh_prep dh_installdirs mkdir -p debian/tmp/usr/share tar zxf gap-gdat.tar.gz -C debian/tmp/usr/share chmod 0644 -R debian/tmp/usr/share dh_movefiles #Check whether debian/tmp is empty at this stage find debian/tmp -depth -type d -exec rmdir {} \; #gzip won't compress .z files without that hack... find debian/gap-small-groups/usr/share/gap/small/small2 -type f -exec sh -c 'gzip --no-name --best -c {} > {}.gz && rm {}' \; find debian/gap-small-groups/usr/share/gap/small/id2 -type f -exec sh -c 'gzip --no-name --best -c {} > {}.gz && rm {}' \; find debian/gap-small-groups-extra/usr/share/gap/small -type f -exec sh -c 'gzip --no-name --best -c {} > {}.gz && rm {}' \; gzip --best -r debian/gap-prim-groups/usr/share/gap/prim/grps/ gzip --best debian/gap-trans-groups/usr/share/gap/trans/*.grp # Build architecture-independent files here. # Pass -i to all debhelper commands in this target to reduce clutter. binary-indep: build install dh_testdir -i dh_testroot -i dh_installdocs -i --all debian/changelog-4.2.Debian dh_installchangelogs -i dh_link -i dh_compress -i dh_fixperms -i dh_installdeb -i dh_gencontrol -i dh_md5sums -i dh_builddeb -i binary-arch: binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure