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
|
#!/usr/bin/make -f
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
package = icom
build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
build-stamp:
dh_testdir
make
touch build
clean:
dh_testdir
-rm -f build
make clean
-rm -f `find . -name "*~"`
dh_clean
binary-indep: build
# nothing else to do
binary-arch: build checkroot
dh_clean
dh_installdirs
make install BINDIR=debian/icom/usr/bin
dh_installdocs call.txt freq.txt arinc_freq
cp -r 7000* 706* 756* r7000 r71 r72 8500* r8500* qsy debian/icom/usr/share/doc/icom/examples
chmod -R a-x debian/icom/usr/share/doc/icom/examples/*
cp -a html debian/icom/usr/share/doc/icom
dh_installmenu
dh_installman debian/icom.man
dh_installchangelogs
dh_strip
dh_compress
dh_fixperms
dh_makeshlibs
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
checkroot:
dh_testdir
dh_testroot
.PHONY: binary binary-arch binary-indep clean checkroot
|