1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
#!/usr/bin/make -f
PACKAGE = edb
include debian/debian-vars.mk
override_dh_clean:
[ ! -f GNUMakefile ] || $(MAKE) clean
find . -name GNUmakefile \
-o -name "*[#~]*" \
| xargs -r rm
dh_clean
override_dh_auto_test:
# Ignore tests and FAIL: skram.test
override_dh_auto_install:
# target: install call make
$(MAKE) DESTDIR=debian/edb install
# Don't need compiled files
rm -f $(PKGLISPDIR)/*.elc
# The 'make install' doesn't install all files. Do it by hand.
install -m 644 lisp/*.el $(PKGLISPDIR)
# But do not include these, which are not edb-* namespace
rm $(PKGLISPDIR)/connection.el \
$(PKGLISPDIR)/state.el \
$(PKGLISPDIR)/system.el
# We need these in emacsen-install
#
# The byte compilation is real strange. The
# bfuncs::edb-bfunc-make-all calls 'make', which reads
# GNUmakefile with some hackery to print out variables (*.el
# file lists) stored there. So GNUmakefile must be avalable
# for 'edb-bfunc-make-all'.
install -m 644 lisp/bfuncs lisp/GNUmakefile $(PKGLISPDIR)
# debhelper will handle this
rm -f $(INFODIR)/dir*
# Install examples
install -m 755 -d $(PKGDOCDIR)
tar -cf - examples | tar -C $(PKGDOCDIR) -xf -
# This file is duplicate with arb-demo-regexp
rm -f $(PKGDOCDIR)/examples/arb-demo
# Delete unused symlinks
rm -f $(PKGDOCDIR)/examples/passwd $(PKGDOCDIR)/examples/null
override_dh_installinfo:
dh_installinfo doc/edb.info
override_dh_compress:
# Do not compress EDB example data files
dh_compress -X.edb -X.dba -X.fmt -X.dat
%:
dh $@
# End of file
|