File: rules

package info (click to toggle)
epix 1.2.22-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,256 kB
  • sloc: cpp: 16,847; sh: 5,054; makefile: 159; lisp: 6
file content (53 lines) | stat: -rwxr-xr-x 1,723 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

DOCDIR = $(CURDIR)/debian/epix/usr/share/doc/epix

%:
	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 $(DOCDIR)/notes
	-rm -rf $(DOCDIR)/config
	-rm -f $(DOCDIR)/sample_src.tar.gz

execute_after_dh_installdocs:
	iconv -f ISO-8859-1 -t UTF-8 THANKS > $(DOCDIR)/THANKS

execute_after_dh_installexamples:
	-rm -f $(DOCDIR)/examples/sample_src.tar.gz
	-rm -f $(DOCDIR)/examples/sample-stamp
	-rm -f $(DOCDIR)/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