#!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 #export DH_OPTIONS=-v export DEB_BUILD_MAINT_OPTIONS = hardening=+all INSTDIR=`pwd`/debian/sunclock INSTMAPDIR=`pwd`/debian/sunclock-maps %: dh $@ override_dh_auto_configure: xmkmf override_dh_auto_build-arch: $(MAKE) CDEBUGFLAGS="$(shell dpkg-buildflags --get CFLAGS)" \ EXTRA_LDOPTIONS="$(shell dpkg-buildflags --get LDFLAGS)" \ PROJECT_DEFINES="$(shell dpkg-buildflags --get CPPFLAGS)" \ XAPPLOADDIR=/etc/X11/app-defaults SELINUX_LIBS= \ DOCDIR=/usr/share/doc/sunclock override_dh_auto_build-indep: # nothing to build on indep package. override_dh_clean: [ ! -f Makefile ] || $(MAKE) clean rm -f Makefile Makefile.bak editkit/Makefile dh_clean override_dh_auto_install-arch: $(MAKE) install install.man DESTDIR=$(INSTDIR)/usr \ BINDIR=/bin MANDIR=/share/man/man1 MANSUFFIX=1 \ DOCDIR=/usr/share/doc/sunclock # little hack to have Sunclockrc in /etc: mv $(INSTDIR)/usr/share/sunclock/Sunclockrc $(INSTDIR)/etc (cd $(INSTDIR)/usr/share/sunclock; ln -s /etc/Sunclockrc) for x in wm_icons/*.xpm; do \ install -m644 $$x $(INSTDIR)/usr/share/pixmaps/; \ done for x in 16x16 22x22 32x32 48x48 64x64; do \ convert wm_icons/sunclock2.xpm -geometry $$x \ $(INSTDIR)/usr/share/icons/hicolor/$$x/apps/sunclock.png; \ done install -m644 debian/sunclock.desktop \ $(INSTDIR)/usr/share/applications/sunclock.desktop override_dh_auto_install-indep: install -m644 vmf/* $(INSTMAPDIR)/usr/share/sunclock/earthmaps/vmf/ override_dh_installdocs-arch: dh_installdocs # install emx documentation mv $(INSTDIR)/usr/share/sunclock/editkit/README \ $(INSTDIR)/usr/share/doc/sunclock/README.emx mv $(INSTDIR)/usr/share/sunclock/editkit/MANUAL.emacs \ $(INSTDIR)/usr/share/doc/sunclock/MANUAL.emx install -m644 editkit/CHANGELOG \ $(INSTDIR)/usr/share/doc/sunclock/changelog.emx rm -f $(INSTDIR)/usr/share/man/man1/emx.1 override_dh_installchangelogs: dh_installchangelogs CHANGES override_dh_compress: dh_compress -XMANUAL.emx