#!/usr/bin/make -f SPECIALFLAGS=DICTLOCATION=/usr/share/edict/kanjidic EDICTLOCATION=/usr/share/edict/edict RADLOCATION=/var/lib/xjdic/radkfile PKGDIR=$(CURDIR)/debian/tmp # Uncomment this to turn on verbose mode. # export DH_VERBOSE=1 export MODULE_CFLAGS=$(shell dpkg-buildflags --get CFLAGS) export MODULE_DEFINES=$(shell dpkg-buildflags --get CPPFLAGS) export LOCAL_LDFLAGS=-Wl,--as-needed $(shell dpkg-buildflags --get LDFLAGS) override_dh_auto_configure: xmkmf -a override_dh_auto_build: $(MAKE) $(SPECIALFLAGS) $(MAKE) -C makedic override_dh_auto_test: # nothing override_dh_auto_clean: [ ! -f Makefile ] || make distclean rm -f KDrill.ad make -C makedic clean override_dh_auto_install: # kdrill $(MAKE) install DESTDIR=$(PKGDIR) $(SPECIALFLAGS) $(MAKE) install.man DESTDIR=$(PKGDIR) mkdir -p $(PKGDIR)/usr/share/pixmaps/ cp kdrill.xpm $(PKGDIR)/usr/share/pixmaps/ # makedic cp makedic/makeedict makedic/makedic $(PKGDIR)/usr/bin mkdir -p $(PKGDIR)/usr/share/man/man1 cp makedic/*.1 $(PKGDIR)/usr/share/man/man1 # kanadic mkdir -p $(PKGDIR)/usr/share/edict cp makedic/*.edic $(PKGDIR)/usr/share/edict gzip -9nv $(PKGDIR)/usr/share/edict/*.edic %: dh $@