#!/usr/bin/make -f include /usr/share/dpkg/buildflags.mk export DH_VERBOSE = 1 cmd := \ listen \ nlsadmin \ saf \ ttymon \ netadm \ man := \ usr/src/man/man1m/listen.1m \ usr/src/man/man1m/nlsadmin.1m \ usr/src/man/man1m/pmadm.1m \ usr/src/man/man1m/sac.1m \ usr/src/man/man1m/sacadm.1m \ usr/src/man/man1m/sttydefs.1m \ usr/src/man/man1m/ttyadm.1m \ usr/src/man/man1m/ttymon.1m \ usr/src/man/man1m/saf.1m mkclxml = usr/src/cmd/svc/milestone/make-console-login-xml unpack: unpack-stamp unpack-stamp: dh_testdir dh_illumos_gate --build \ $(cmd:%=usr/src/cmd/%) \ $(man) \ $(mkclxml) \ usr/src/head/listen.h \ usr/src/cmd/svc/milestone/console-login # Buggy and unused: echo > usr/src/Makefile.msg.targ # Use GNU ld: sed -i '/LD_ALTEXEC/d' usr/env.sh echo 'BDIRECT=' >> usr/src/cmd/Makefile.cmd echo 'MAPFILE.NES=' >> usr/src/cmd/Makefile.cmd echo 'MAPFILE.PGA=' >> usr/src/cmd/Makefile.cmd echo 'MAPFILE.NED=' >> usr/src/cmd/Makefile.cmd 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: unpack-stamp . usr/env.sh; mkdir -p \ debian/tmp/lib/svc/manifest/system \ debian/tmp/lib/svc/method \ debian/tmp/usr/include \ debian/tmp/usr/lib/saf \ debian/tmp/usr/sbin touch $@ install: install-stamp install-stamp: build-stamp install -m 755 -t debian/tmp/lib/svc/method \ usr/src/cmd/svc/milestone/console-login install -m 644 -t debian/tmp/lib/svc/manifest/system \ console-login.xml touch $@ build build-arch build-indep: build-stamp $(mkclxml): patch-stamp unpack-stamp console-login.xml: $(mkclxml) $(SHELL) $< build-stamp: dirs-stamp patch-stamp console-login.xml cp usr/src/head/listen.h debian/tmp/usr/include/ dh_illumos_make --native $(cmd:%=usr/src/cmd/%) touch $@ binary binary-arch binary-indep: binary-stamp binary-stamp: install-stamp dh_testdir dh_testroot dh_installdirs dh_install dh_strip 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 rm -rf usr .pc dh_clean console-login.xml