File: rules

package info (click to toggle)
whitedb 0.7.3%2Bgit211004-1
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 3,340 kB
  • sloc: ansic: 33,250; javascript: 3,299; python: 790; lex: 359; java: 277; makefile: 198; sh: 164; yacc: 138; sed: 41
file content (33 lines) | stat: -rwxr-xr-x 901 bytes parent folder | download | duplicates (4)
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
#!/usr/bin/make -f
#-*- makefile -*-

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

DEVDIR=$(CURDIR)/debian/libwgdb-dev/
INSTALLDIR=$(CURDIR)/debian/tmp/

override_dh_auto_configure:
	dh_auto_configure -- --without-gcc-arch

override_dh_auto_install:
	dh_auto_install
	sed 's|WhiteDB \\|wgdb \\|' $(INSTALLDIR)/usr/share/man/man7/whitedb.7 \
		>$(INSTALLDIR)/usr/share/man/man7/wgdb.7
	$(RM) $(INSTALLDIR)/usr/share/man/man7/whitedb.7

override_dh_installexamples:
	dh_installexamples
	sed -i 's|"../Db/\(.\+\)"|<whitedb/\1>|' \
		$(DEVDIR)/usr/share/doc/libwgdb-dev/examples/demo.c \
		$(DEVDIR)/usr/share/doc/libwgdb-dev/examples/query.c

override_dh_fixperms:
	dh_fixperms
	chmod a-x $(DEVDIR)/usr/share/doc/libwgdb-dev/examples/dserve.c

%:
	dh $@ --with autoreconf

.PHONY: override_dh_auto_configure override_dh_auto_install \
	override_dh_installexamples override_dh_fixperms