#!/usr/bin/make -f #export DH_VERBOSE=1 DPKG_EXPORT_BUILDFLAGS=1 include /usr/share/dpkg/default.mk override_dh_auto_configure: ./default override_dh_auto_build: cd libworkman && $(MAKE) LDOPTIONS="$(LDFLAGS)" CCOPTIONS="-Wno-unused-result" $(MAKE) LDOPTIONS="$(LDFLAGS)" override_dh_auto_install: $(MAKE) \ BINDIR=`pwd`/debian/ascd/usr/bin \ LIBDIR=`pwd`/debian/ascd/usr/lib \ MANDIR=`pwd`/debian/ascd/usr/share/man/man1 \ THEMESDIR=`pwd`/debian/ascd/usr/share/ascd \ install install.man dh_installdocs ascd/README ascd/doc/NEWS dh_installchangelogs ascd/doc/CHANGES mkdir -p debian/ascd/usr/share/doc/ascd mv debian/ascd/usr/share/ascd/themes-manual.ps.gz debian/ascd/usr/share/doc/ascd mv debian/ascd/usr/share/man/man1/ascd.1x debian/ascd/usr/share/man/man1/ascd.1 %: dh $@ #build: build-arch build-indep #build-arch: build-stamp #build-indep: build-stamp #build-stamp: # dh_testdir # # xmkmf -a # cd libworkman; $(MAKE) CCOPTIONS="$(CFLAGS)" LDOPTIONS="$(LDFLAGS)" # $(MAKE) # # touch build-stamp # #clean: # dh_testdir # dh_testroot # rm -f build-stamp install-stamp # # [ ! -f Makefile ] || $(MAKE) clean # rm -f Makefile ascd/Makefile libworkman/Makefile # # dh_clean # #install: install-stamp #install-stamp: build-stamp # dh_testdir # dh_testroot # dh_prep # dh_installdirs # # $(MAKE) \ # BINDIR=`pwd`/debian/ascd/usr/bin \ # LIBDIR=`pwd`/debian/ascd/usr/lib \ # MANDIR=`pwd`/debian/ascd/usr/share/man/man1 \ # THEMESDIR=`pwd`/debian/ascd/usr/share/ascd \ # install install.man # -rm debian/ascd/usr/lib/libworkman.so # # touch install-stamp # ## Build architecture-independent files here. #binary-indep: build install ## We have nothing to do by default. # ## Build architecture-dependent files here. #binary-arch: build install ## dh_testversion # dh_testdir # dh_testroot # dh_installdocs ascd/README ascd/doc/NEWS # dh_installchangelogs ascd/doc/CHANGES # mv debian/ascd/usr/share/ascd/themes-manual.ps.gz debian/ascd/usr/share/doc/ascd # mv debian/ascd/usr/share/man/man1/ascd.1x debian/ascd/usr/share/man/man1/ascd.1 # dh_link # dh_strip # dh_compress # dh_fixperms # dh_installdeb # dh_shlibdeps # dh_gencontrol # dh_md5sums # dh_builddeb # #source diff: # @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false # #binary: binary-indep binary-arch #.PHONY: build clean binary-indep binary-arch binary install