#!/usr/bin/make -f export DH_VERBOSE=1 # This is the debhelper compatibility version to use. export DH_COMPAT=5 DICTD_DIR=debian/dict-revo/usr/share/dictd configure: configure-stamp configure-stamp: dh_testdir touch configure-stamp build: build-stamp build-stamp: configure-stamp dh_testdir touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp dh_clean install: build dh_testdir dh_testroot dh_clean -k dh_installdirs -A rm -f debian/names.index cp revo.dat.dz $(DICTD_DIR)/revo.dict.dz dictunzip $(DICTD_DIR)/revo.dict.dz for i in *.inx ; do \ cp $$i $(DICTD_DIR)/$${i%%inx}index ; \ description=`./debian/fixup-database.sh $$i dictd.conf` ; \ echo "00-database-short" > new-entries.tmp ; \ echo " $$description" >> new-entries.tmp ; \ sed_script=`./debian/index-simple $(DICTD_DIR)/revo.dict new-entries.tmp` ; \ cat new-entries.tmp >> $(DICTD_DIR)/revo.dict ; \ echo $$sed_script ; \ sed -i -e "$$sed_script" $(DICTD_DIR)/$${i%%inx}index ; \ done $(RM) -f new-entries.tmp dictzip $(DICTD_DIR)/revo.dict # Build architecture-independent files here. binary-arch: build install # We have nothing to do by default. # Build architecture-dependent files here. binary-indep: build install dh_testdir dh_testroot dh_installdocs -A dh_installchangelogs -A dh_link dh_strip dh_compress dh_fixperms dh_installdeb -A dh_shlibdeps dh_gencontrol -A dh_md5sums -A dh_builddeb -A binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure