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
|
#!/usr/bin/make -f
normal=fortunes-it
offensive=fortunes-it-off
destdir=$(CURDIR)/debian/$(normal)/usr/share/games/fortunes/it
offdestdir=$(CURDIR)/debian/$(offensive)/usr/share/games/fortunes/off/it
build-arch: build
build-indep: build
build:
dh_testdir
touch build
clean:
dh_testdir
dh_testroot
$(MAKE) clean
rm -f build
dh_clean
binary-arch: build
binary-indep: build
dh_testdir
dh_testroot
dh_clean
dh_installdirs -i -A
$(MAKE) normal prefix=$(CURDIR)/debian/$(normal) COOKIEDIR=$(destdir)
# Workaround for bug #157185 (fortune-mod)
cd $(destdir)/../ && find it/ -type f -exec ln -s '{}' . ';'
$(MAKE) offensive prefix=$(CURDIR)/debian/$(offensive) OCOOKIEDIR=$(offdestdir)
# Workaround for bug #157185 (fortune-mod)
cd $(offdestdir)/../ && find it/ -type f -exec ln -s '{}' . ';'
dh_installdocs -i -A
dh_installchangelogs -i -A
dh_compress -i
dh_gencontrol -i
dh_installdeb -i
dh_md5sums -i
dh_builddeb -i
binary: binary-arch binary-indep
.PHONY: clean binary-indep binary
|