1#!/usr/bin/make -f 2 3# Uncomment this to turn on verbose mode. 4export DH_VERBOSE=1 5 6package=ndpi 7 8build: build-stamp 9build-stamp: 10 dh_testdir 11 12clean: 13 dh_testdir 14 dh_testroot 15 dh_clean 16 17install: build 18 dh_testdir 19 dh_testroot 20 dh_clean -k 21 dh_installdirs 22 23# Build architecture-independent files here. 24binary-indep: build install 25# We have nothing to do by default. 26 27# Build architecture-dependent files here. 28binary-arch: build install 29 dh_testdir 30 dh_testroot 31 dh_prep 32 #dh_clean -k 33 dh_installdirs 34 dh_installinit 35 dh_installman 36 dh_link 37 dh_strip 38 dh_compress 39 dh_fixperms 40 dh_installdeb 41 mkdir -p ./debian/ndpi ./debian/ndpi-dev 42 cp -r ./debian/ndpi-tmp/* ./debian/ndpi/ 43 cp -r ./debian/ndpi-dev-tmp/* ./debian/ndpi-dev/ 44 -find ./debian/ndpi -executable -type f | xargs strip 45 dh_gencontrol 46 dh_md5sums 47 dh_builddeb 48 49binary: binary-indep binary-arch 50.PHONY: build clean binary-indep binary-arch binary install 51