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 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
|
#!/usr/bin/make -f
# -*- makefile -*-
.PHONY: \
configure-stamp configure \
build-stamp build-indep build-arch build \
clean \
install \
binary-indep binary-arch binary \
fizmo fizmo-common fizmo-console fizmo-ncursesw
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
configure-stamp:
dh_testdir
cp config.default.mk config.mk
touch configure-stamp
configure: configure-stamp
build-stamp: configure-stamp
dh_testdir
touch build-stamp
build-stamp-fizmo-console: configure-stamp
dh_testdir
$(MAKE) prefix=/usr DISABLE_BABEL=1 DISABLE_FILELIST=1 \
DISABLE_BLOCKBUFFER=1 DISABLE_COMMAND_HISTORY=1 DISABLE_OUTPUT_HISTORY=1 \
fizmo-console
touch build-stamp
build-stamp-fizmo-ncursesw: configure-stamp
dh_testdir
$(MAKE) prefix=/usr fizmo-ncursesw
touch build-stamp
# All build target will do nothing by default, since different types of
# builds are required to build each package. Building is instead invoked
# from the "binary" targets later on.
build-indep:
build-arch:
build:
clean:
install:
binary: binary-indep binary-arch
binary-indep: fizmo-common fizmo
binary-arch: fizmo-console fizmo-ncursesw
fizmo:
dh_testdir
dh_testroot
dh_auto_clean -p$@
dh_prep -p$@
dh_installdirs
dh_installchangelogs -p$@ CHANGELOG.txt
dh_installdocs -p$@
dh_link -p$@
dh_strip -p$@
dh_compress -p$@
dh_fixperms -p$@
dh_installdeb -p$@
dh_shlibdeps -p$@
dh_gencontrol -p$@
dh_md5sums -p$@
dh_builddeb -p$@
fizmo-common: configure-stamp
dh_testdir
dh_testroot
dh_auto_clean -p$@
dh_prep -p$@
dh_installdirs
dh_installchangelogs -p$@ CHANGELOG.txt
dh_installdocs -p$@
$(MAKE) prefix=$(CURDIR)/debian/fizmo-common/usr install-locales
dh_installexamples -p$@
dh_installman -p$@
dh_link -p$@
dh_strip -p$@
dh_compress -p$@
dh_fixperms -p$@
dh_installdeb -p$@
dh_shlibdeps -p$@
dh_gencontrol -p$@
dh_md5sums -p$@
dh_builddeb -p$@
fizmo-console: configure-stamp build-stamp-fizmo-console
dh_testdir
dh_testroot
dh_auto_clean -p$@
dh_prep -p$@
dh_installdirs
dh_installchangelogs -p$@ CHANGELOG.txt
dh_installdocs -p$@
$(MAKE) prefix=/usr DESTDIR=$(CURDIR)/debian/fizmo-console install-fizmo-console
dh_installexamples -p$@
dh_installman -p$@
dh_link -p$@
dh_strip -p$@
dh_compress -p$@
dh_fixperms -p$@
dh_installdeb -p$@
dh_shlibdeps -p$@
dh_gencontrol -p$@
dh_md5sums -p$@
dh_builddeb -p$@
fizmo-ncursesw: configure-stamp build-stamp-fizmo-ncursesw
dh_testdir
dh_testroot
dh_prep -p$@
dh_auto_clean -p$@
dh_installdirs
dh_installchangelogs -p$@ CHANGELOG.txt
dh_installdocs -p$@
$(MAKE) prefix=/usr DESTDIR=$(CURDIR)/debian/fizmo-ncursesw install-fizmo-ncursesw
dh_installexamples -p$@
dh_installman -p$@
dh_link -p$@
dh_strip -p$@
dh_compress -p$@
dh_fixperms -p$@
dh_installdeb -p$@
dh_shlibdeps -p$@
dh_gencontrol -p$@
dh_md5sums -p$@
dh_builddeb -p$@
|