File: rules

package info (click to toggle)
libnet 1.3%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,820 kB
  • sloc: ansic: 19,531; makefile: 294; sh: 94; ruby: 8
file content (28 lines) | stat: -rwxr-xr-x 874 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

#DEB_CONFIGURE_SCRIPT_ENV += LDFLAGS="-Wl,-z,defs,--as-needed"

# Don't enable -Werror as the package may FTBFS when a new gcc is introduced
# Use it for testing though
# -Werror
export DEB_CFLAGS_MAINT_APPEND = -Wno-uninitialized -Wno-unused-but-set-variable

DEB_CONFIGURE_EXTRA_FLAGS += --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
  DEB_CONFIGURE_EXTRA_FLAGS += --enable-doxygen-html
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- $(DEB_CONFIGURE_EXTRA_FLAGS)

override_dh_install:
	dh_install
	# Remove example Makefile which embeds build paths and binary paths
	rm -f $(CURDIR)/debian/libnet1-doc/usr/share/doc/libnet1-doc/html/Makefile
	# Remove extra license file
	rm -f $(CURDIR)/debian/libnet1-doc/usr/share/doc/libnet/LICENSE