Codebase list pgbackrest / 89aa5be
Use dh --sourcedirectory=src Adrian Vondendriesch authored 1 year, 9 months ago Christoph Berg committed 1 year, 8 months ago
3 changed file(s) with 7 addition(s) and 17 deletion(s). Raw diff Collapse all Expand all
0 doc/output/
00 debian/pgbackrest.conf etc/
1 usr/bin/pgbackrest
88 #export DH_VERBOSE = 1
99
1010 %:
11 dh $@ --buildsystem=makefile
11 dh $@ --sourcedirectory=src
1212
1313 override_dh_auto_configure:
14 # src contains a seperate configure script.
15 cd $(CURDIR)/src && ./configure --prefix=/usr --bindir=/usr/bin
16 dh_auto_configure --buildsystem=makefile
14 # src contains a separate configure script.
15 dh_auto_configure --sourcedirectory=src -- --prefix=/usr --bindir=/usr/bin
1716
1817 override_dh_auto_build:
1918 # Replace user name in doc cache with the current user
2726 -t pgbackrest \
2827 -s 1 \
2928 ${MANTEMPLATE} > ${CURDIR}/doc/output/man/pgbackrest.1
30 make -C $(CURDIR)/src/
31 dh_auto_build
29 dh_auto_build --sourcedirectory=src
3230
3331 override_dh_auto_clean:
34 rm -rf $(CURDIR)/doc/output
35 dh_auto_clean
36
37 override_dh_auto_install:
38 make -C src install DESTDIR=$(CURDIR)/debian/pgbackrest
39 dh_auto_install
32 ! [ -f src/Makefile ] || $(MAKE) -C src clean-all
4033
4134 # pgBackRest must be configured before the TLS server can be started.
4235 # Moreover a user must configure valid CA, client and server certificates.
4336 override_dh_installsystemd:
4437 dh_installsystemd --no-enable --no-start
45
46 .PHONY: build
47
48 build:
49 dh build