File: rules

package info (click to toggle)
wiggle 0.8%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,700 kB
  • sloc: ansic: 11,048; sh: 1,101; makefile: 161
file content (23 lines) | stat: -rwxr-xr-x 475 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
#!/usr/bin/make -f

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

override_dh_auto_clean:
	# Save original files
	tar -cf saved.tar .version-man .version-readme TAGS
	dh_auto_clean

override_dh_clean:
	dh_clean
	# Restore original files
	tar -xf saved.tar ; rm saved.tar

override_dh_auto_build:
	$(MAKE) CFLAGS="$(CFLAGS) $(CPPFLAGS) $(LDFLAGS)"

%:
	dh $@

# End of file