#!/usr/bin/make -f CC ?= gcc %: dh $@ override_dh_clean: $(MAKE) -f unixio.mak realclean dh_clean override_dh_auto_build: $(MAKE) -f unixio.mak CC=$(CC) OPTIMIZE="$(CFLAGS) $(LDFLAGS)" override_dh_auto_install: install -m 755 jzip debian/jzip/usr/games install -m 755 jzexe debian/jzip/usr/games install -m 755 ckifzs debian/jzip/usr/games dh_install # # get-orig-source # for manual invocation only. # UPSTREAM = jzip21-10oct2000.zip VERSION = $(shell dpkg-parsechangelog | sed -ne 's/^Version: *\([0-9]\+:\)*//p') UPSTREAM_VERSION = $(shell echo $(VERSION) | sed 's/-[^-]\+$$//') ORIGDIR = jzip-$(UPSTREAM_VERSION).orig ORIGURL = http://ifarchive.heanet.ie/if-archive/infocom/interpreters/zip/$(UPSTREAM) get-orig-source: fakeroot sh -c ' \ mkdir $(ORIGDIR) && \ wget -O $(UPSTREAM) $(ORIGURL) && \ cd $(ORIGDIR) && unzip ../$(UPSTREAM) && cd .. && \ touch -r $(UPSTREAM) $(ORIGDIR) && \ $(RM) $(UPSTREAM) && \ BZIP2=-9 tar jcf `echo $(ORIGDIR)|sed s/-/_/`.tar.bz2 $(ORIGDIR) && \ $(RM) -r $(ORIGDIR)' .PHONY: get-orig-source