#!/usr/bin/make -f export DH_VERBOSE = 1 cmd := \ svc/svcadm \ svc/svccfg \ svc/svcs \ svc/svcprop unpack: unpack-stamp unpack-stamp: dh_testdir dh_illumos_gate --build \ $(cmd:%=usr/src/cmd/%) \ usr/src/cmd/svc/common \ usr/src/man/man1/svcprop.1 \ usr/src/man/man1/svcs.1 \ usr/src/man/man1m/svcadm.1m \ usr/src/man/man1m/svccfg.1m # Not used and buggy: echo > usr/src/Makefile.msg.targ touch $@ patch: patch-stamp patch-stamp: unpack-stamp dh_testdir [ ! -f debian/patches/series ] || QUILT_PATCHES=debian/patches quilt push -a || test $$? = 2 touch $@ unpatch: dh_testdir [ ! -f debian/patches/series ] || QUILT_PATCHES=debian/patches quilt pop -a -f || test $$? = 2 rm -f patch-stamp dirs-stamp: . usr/env.sh; mkdir -p \ debian/tmp/usr/bin \ debian/tmp/usr/sbin touch $@ mapfiles-stamp: patch-stamp dh_illumos_make usr/src/common/mapfiles touch $@ extra-stamp: pod2man -r smf_present -c smf_present --section=1 debian/smf_present.pod > debian/smf_present.1 pod2man -r svcstatus -c svcstatus --section=1 debian/svcstatus.pod > debian/svcstatus.1 touch $@ install build build-arch build-indep: build-stamp build-stamp: patch-stamp dirs-stamp mapfiles-stamp extra-stamp dh_illumos_make --native $(cmd:%=usr/src/cmd/%) touch $@ binary binary-arch binary-indep: binary-stamp binary-stamp: build-stamp dh_testdir dh_testroot dh_installdirs dh_install dh_installman dh_installdocs dh_installexamples dh_installchangelogs dh_bash-completion dh_link dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_strip dh_gencontrol dh_md5sums dh_builddeb touch $@ clean: unpatch dh_testdir dh_testroot dh_clean rm -rf usr