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
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
%:
dh $@ --with elpa
execute_before_dh_auto_configure:
find -type f \( -name missing -o -name install-sh -o -name mkinstalldirs \
-o -name depcomp -o -name ltmain.sh -o -name configure \
-o -name config.log -o -name config.status \
-o -name Makefile.in -o -name aclocal.m4 -o -name compile \) \
-print0 | xargs -0 rm -f
rm -f config.sub config.guess
rm -f doc/texinfo.tex
autoreconf --force --install
rm -f config.sub config.guess
ln -s /usr/share/misc/config.sub .
ln -s /usr/share/misc/config.guess .
override_dh_auto_configure:
dh_auto_configure -- --with-bash=/bin/bash
execute_after_dh_auto_install:
-rm -rf $(CURDIR)/debian/epix/usr/share/doc/epix/notes
-rm -rf $(CURDIR)/debian/epix/usr/share/doc/epix/config
-rm -f $(CURDIR)/debian/epix/usr/share/doc/epix/sample_src.tar.gz
execute_after_dh_installexamples:
-rm -f $(CURDIR)/debian/epix/usr/share/doc/epix/examples/sample_src.tar.gz
-rm -f $(CURDIR)/debian/epix/usr/share/doc/epix/examples/sample-stamp
-rm -f $(CURDIR)/debian/epix/usr/share/doc/epix/examples/Makefile*
execute_after_dh_install:
install -m644 bash_completions debian/epix/usr/share/bash-completion/completions/epix
override_dh_compress:
dh_compress -a -X examples
execute_before_dh_auto_clean:
[ ! -f Makefile ] || $(MAKE) distclean
find -type d -name autom4te.cache -print0 | xargs -0 -r rm -rf \;
find -type f \( -name missing -o -name install-sh -o -name mkinstalldirs \
-o -name depcomp -o -name ltmain.sh -o -name configure \
-o -name config.log -o -name config.status \
-o -name Makefile.in -o -name aclocal.m4 -o -name compile \) \
-print0 | xargs -0 rm -f
rm -f config.sub config.guess
rm -f configure-stamp build-stamp configure
rm -f doc/epix.info doc/texinfo.tex
|