#!/usr/bin/make -f p = packetforth # toplevel source package dir TOP=$(shell pwd) # working directory for build WORK=$(TOP)/debian/work # installed tree TREE=$(TOP)/debian/$(p) # for debian pf will go in /usr PREFIX=$(TREE)/usr # this is either from the darcs archive, or generated by the # bin/snapshot script VERSION=$(shell bin/version) # this is the debian revision number REVISION=1 # BOTH COMBINED # ALLVERSION=$(VERSION)-$(REVISION) # lintian complained we're debian native, so don't need revision ALLVERSION=$(VERSION) .PHONY: default clean binary binary-arch binary-indep build genfiles default: clean: rm -f debian-build rm -rf debian/files rm -rf $(WORK) rm -rf $(TREE) genfiles: bin/make-debver $(p) $(ALLVERSION) # configuration and compilation debian-build: genfiles install -d $(WORK) install -d $(PREFIX) cd debian/work && $(TOP)/configure \ --enable-mmx \ --prefix=$(PREFIX) \ --pdhome=$(PREFIX)/lib/pd \ --defaultpfhome=/usr/lib/pf $(MAKE) -C debian/work install touch debian-build build: debian-build # build binary package binary-arch: build dh_testdir dh_testroot dh_installdeb -p$(p) dh_gencontrol -p$(p) dh_md5sums -p$(p) dh_builddeb -p$(p) binary-indep: binary: binary-arch binary-indep xxx: echo $(VERSION)