File: rules

package info (click to toggle)
tinyows 1.2.2-2
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid
  • size: 4,472 kB
  • sloc: ansic: 10,067; xml: 1,124; lex: 816; sql: 273; sh: 160; makefile: 82
file content (39 lines) | stat: -rwxr-xr-x 1,016 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# This has to be exported to make some magic below work.
export DH_OPTIONS

# Enable hardening build flags
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

# Append hardening buildflags to CFLAGS, only one used by the build system.
CFLAGS += $(LDFLAGS)
CFLAGS += $(CPPFLAGS)

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --with-shp2pgsql=/usr/bin/shp2pgsql

override_dh_auto_test:
	# Skip tests, requires database setup

override_dh_auto_install:
	# make install does almost nothing, so we do it here
	# $(MAKE) DESTDIR=$(CURDIR)/debian/tinyows install

	cp $(CURDIR)/tinyows $(CURDIR)/debian/tinyows/usr/lib/cgi-bin/

	mkdir -p $(CURDIR)/debian/tinyows/usr/share/tinyows
	cp -rf $(CURDIR)/schema $(CURDIR)/debian/tinyows/usr/share/tinyows/

	# remove extra license files
	rm -f $(CURDIR)/debian/tinyows/usr/share/tinyows/schema/LICENSE

override_dh_installchangelogs:
	dh_installchangelogs NEWS.md