File: rules

package info (click to toggle)
libgig 4.1.0~repack-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,352 kB
  • sloc: cpp: 18,520; sh: 4,354; makefile: 112
file content (26 lines) | stat: -rwxr-xr-x 631 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
#!/usr/bin/make -f

export CFLAGS=$(shell dpkg-buildflags --get CFLAGS)
export LDFLAGS=$(shell dpkg-buildflags --get LDFLAGS)
export CPPFLAGS=$(shell dpkg-buildflags --get CPPFLAGS)

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --enable-static=no

override_dh_installchangelogs:
	dh_installchangelogs NEWS

override_dh_auto_build-indep:
	$(MAKE) docs
	ln -sf /usr/share/javascript/jquery/jquery.js doc/html/jquery.js

override_dh_auto_clean:
	$(RM) -rf doc/html
	[ ! -f $(CURDIR)/Makefile ] || $(MAKE) -k distclean