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.
18 build-stamp: configure-stamp
21 # Add here commands to compile the package.
28 rm -f build-stamp configure-stamp
29 # Add here commands to clean up after the build process.
30 [ ! -f Makefile ] || $(MAKE) clean
41 # Add here commands to install the package into debian/ca-certificates.
42 $(MAKE) install DESTDIR=$(CURDIR)/debian/ca-certificates
43 (cd $(CURDIR)/debian/ca-certificates/usr/share/ca-certificates; \
45 for crt in $$(find . -type f -name '*.crt' -print); \
47 crt=$$(echo $$crt | sed -e 's/\.\///'); \
48 if test "$$crts" = ""; then \
51 crts="$$crts, $$crt"; \
54 cd $(CURDIR)/debian; \
55 sed -e "s|#INITIAL_CERTS#|$$crts|" -e "s|#VERSION#|$(VERSION)|" \
58 # Build architecture-independent files here.
59 binary-indep: build install
65 dh_installman sbin/update-ca-certificates.8
74 # Build architecture-dependent files here.
75 binary-arch: build install
76 # We have nothing to do by default.
78 binary: binary-indep binary-arch
79 .PHONY: build clean binary-indep binary-arch binary install configure