Merge branch 'master' of git://repo.or.cz/httpd-crcsyncproxy
[httpd-crcsyncproxy.git] / Makefile
blob4dabf73b49902c1d6b2dbb2d34badd5d32b7efb9
1 PKG_BUILDDIR=pkgtmp
2 VERSION=0.1.0
3 PACKAGE_NAME=libapache2-mod-crccache
5 PREFIX?=$(DESTDIR)/
7 CCAN_PATH=ccan
9 all:
10 make -C crccache
12 clean:
13 make -C crccache clean
14 rm -rf *.orig.tar.gz
15 rm -rf $(PKG_BUILDDIR)
17 dist:
18 git archive --format=tar --prefix=$(PACKAGE_NAME)-$(VERSION)/ HEAD Makefile crccache ccan apache/modules/cache | gzip > $(PACKAGE_NAME)_$(VERSION).orig.tar.gz
20 deb: dist
21 # first unpack the source and copy in the deb dir
22 rm -rf $(PKG_BUILDDIR)
23 mkdir $(PKG_BUILDDIR)
24 cp $(PACKAGE_NAME)_$(VERSION).orig.tar.gz $(PKG_BUILDDIR)
25 cd $(PKG_BUILDDIR); tar -xzf $(PACKAGE_NAME)_$(VERSION).orig.tar.gz
26 cp -r debian $(PKG_BUILDDIR)/$(PACKAGE_NAME)-$(VERSION)
28 # then we need to build the deb source archive
29 cd $(PKG_BUILDDIR)/$(PACKAGE_NAME)-$(VERSION); debuild -S -uc -us
31 debbin: deb
32 cd $(PKG_BUILDDIR)/$(PACKAGE_NAME)-$(VERSION); debuild -uc -us
34 install:
35 echo INSTALL $(PREFIX)