2 # Sample debian/rules that uses debhelper.
3 # GNU copyright 1997 to 1999 by Joey Hess.
5 # Uncomment this to turn on verbose mode.
8 VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: //p')
10 configure: configure-stamp
13 # Add here commands to configure the package.
16 build: build-arch build-indep
18 build-arch: build-stamp
20 build-indep: build-stamp
22 build-stamp: configure-stamp
25 # Add here commands to compile the package.
32 rm -f build-stamp configure-stamp
33 # Add here commands to clean up after the build process.
34 [ ! -f Makefile ] || $(MAKE) clean
45 # Add here commands to install the package into debian/ca-certificates.
46 $(MAKE) install DESTDIR=$(CURDIR)/debian/ca-certificates
47 (cd $(CURDIR)/debian/ca-certificates/usr/share/ca-certificates; \
49 for crt in $$(find . -type f -name '*.crt' -print); \
51 crt=$$(echo $$crt | sed -e 's/\.\///'); \
52 if test "$$crts" = ""; then \
55 crts="$$crts, $$crt"; \
58 cd $(CURDIR)/debian; \
59 sed -e "s|#INITIAL_CERTS#|$$crts|" -e "s|#VERSION#|$(VERSION)|" \
62 # Build architecture-independent files here.
63 binary-indep: build install
69 dh_installman sbin/update-ca-certificates.8
78 # Build architecture-dependent files here.
79 binary-arch: build install
80 # We have nothing to do by default.
82 binary: binary-indep binary-arch
83 .PHONY: build clean binary-indep binary-arch binary install configure