File: rules

package info (click to toggle)
dlume 0.2.4-12
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,376 kB
  • ctags: 567
  • sloc: ansic: 10,523; sh: 8,152; makefile: 60
file content (47 lines) | stat: -rwxr-xr-x 1,014 bytes parent folder | download
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
#!/usr/bin/make -f

PACKAGE = dlume

export DEB_BUILD_MAINT_OPTIONS	= hardening=+all
export DEB_CFLAGS_MAINT_APPEND	= -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

# Modified by the build process
KEEP_FILES = \
 Makefile.in \
 aclocal.m4 \
 config.guess \
 config.h.in \
 config.sub \
 configure \
 depcomp \
 install-sh \
 missing \
 mkinstalldirs \
 src/Makefile.in


override_dh_auto_configure:
	for f in $(KEEP_FILES); do cp -a $$f $$f.orig ; done
	cp -vf /usr/share/misc/config.sub .
	cp -vf /usr/share/misc/config.guess .
	cp -vf $(shell ls /usr/share/automake-*/mkinstalldirs | tail -n 1) .
	autoreconf -vfi
	dh_auto_configure

override_dh_auto_clean:
	# Restore original
	for f in $(KEEP_FILES); do [ ! -f $$f.orig ] || mv $$f.orig $$f; done
	# Delete build files
	rm -rf autom4te.cache
	rm -f Makefile */Makefile
	rm -f stamp* INSTALL
	rm -f po/POTFILES
	rm -f *.cache *.log *.status* config.h po/*.gmo *~
	rm -f src/$(PACKAGE) src/*.o
	rm -f po/Makefile.in

%:
	dh $@

# End of file