File: rules

package info (click to toggle)
ifile 1.3.9-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 1,092 kB
  • ctags: 1,009
  • sloc: ansic: 7,409; makefile: 342; sh: 269
file content (47 lines) | stat: -rwxr-xr-x 1,024 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 = ifile

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

# The only place where to inject additional flags
export CC := $(CC) $(CPPFLAGS) $(LDFLAGS)

override_dh_auto_clean:
	# Override because Makefile has no target 'distclean'. See next target.
	rm -f config.*

override_dh_clean:
	# Standard clean would cause to run 'configure' again (autotools)
	# Manual cleaning.
	rm -rf debian/$(PACKAGE) debian/.debhelper
	rm -f					\
	Makefile				\
	argp/Makefile				\
	config.status				\
	config.log				\
	argp/config.status			\
	argp/config.log				\
	*.o					\
	*.a					\
	debian/*.log				\
	debian/*.substvars			\
	debian/files				\
	argp/*.o				\
	ifile

override_dh_auto_configure:
	cp -vf /usr/share/misc/config.sub .
	cp -vf /usr/share/misc/config.guess .
	dh_testdir
	dh_auto_configure

override_dh_auto_test:
	# Nothing to do. Would cause to run 'configure'

%:
	dh $@

# End of file