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 # This is the debhelper compatability version to use.
10 VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: //p')
12 configure: configure-stamp
15 # Add here commands to configure the package.
20 build-stamp: configure-stamp
23 # Add here commands to compile the package.
30 rm -f build-stamp configure-stamp
31 # Add here commands to clean up after the build process.
43 # Add here commands to install the package into debian/ca-certificates.
44 $(MAKE) install DESTDIR=$(CURDIR)/debian/ca-certificates
45 (cd $(CURDIR)/debian/ca-certificates/usr/share/ca-certificates; \
47 for crt in $$(find . -type f -name '*.crt' -print); \
49 crt=$$(echo $$crt | sed -e 's/\.\///'); \
50 if test "$$crts" = ""; then \
53 crts="$$crts, $$crt"; \
56 cd $(CURDIR)/debian; \
57 sed -e "s|#INITIAL_CERTS#|$$crts|" -e "s|#VERSION#|$(VERSION)|" \
60 # Build architecture-independent files here.
61 binary-indep: build install
74 dh_installman sbin/update-ca-certificates.8
90 # Build architecture-dependent files here.
91 binary-arch: build install
92 # We have nothing to do by default.
94 binary: binary-indep binary-arch
95 .PHONY: build clean binary-indep binary-arch binary install configure