Debian package updates by Jochen Kunkel
[openxpki.git] / trunk / package / debian / deployment / Makefile
blob80ff0e25a3817b46baed94232063d03803a510ef
1 # trunk/package/debian/core
3 OPENXPKI_SVN=../../../..
4 PACKAGE=openxpki-deployment
6 default:
7 make clean
8 make changelog
9 make openxpki-archive
10 make debian-archive
11 make source
12 make package
13 make source-clean
15 openxpki-archive:
16 cd ${OPENXPKI_SVN}/trunk/deployment; \
17 ./configure --distonly; \
18 make dist; \
19 mv $(PACKAGE)-*.tar.gz /tmp
21 debian-archive:
22 ## cd ${OPENXPKI_SVN}/trunk/package/
23 tar -czf /tmp/openxpki-debian.tar.gz .
25 source:
26 cd /tmp; \
27 tar -xzf $(PACKAGE)-*.tar.gz; \
28 cd $(PACKAGE)-*/; \
29 mkdir debian; \
30 cd debian; \
31 tar -xzf /tmp/openxpki-debian.tar.gz;
33 package:
34 cd /tmp/$(PACKAGE)-*/; \
35 fakeroot dpkg-buildpackage || echo ignoring error - usually signing ...
36 mv /tmp/$(PACKAGE)_* ../deb/client/
38 changelog::
39 if [ ! -e changelog.org ]; then mv changelog changelog.org; fi
40 echo -n $(PACKAGE) > changelog
41 DATE=`date +'%Y%m%d'` && echo \ \($$DATE\) unstable\; urgency=low >> changelog
42 echo >> changelog
43 echo " * Daily build." >> changelog
44 echo >> changelog
45 echo " -- Michael Bell <michael.bell@web.de> " `date --rfc-2822` >> changelog
47 source-clean:
48 rm -rf /tmp/$(PACKAGE)-*
49 rm -f /tmp/$(PACKAGE)-*.tar.gz
50 rm -f /tmp/$(PACKAGE).tar.gz
51 rm -f /tmp/openxpki-debian.tar.gz
53 clean: source-clean
54 if [ -e changelog.org ]; then mv changelog.org changelog; fi
55 rm -f *.dsc *.dsc.asc *.tar.gz ../deb/client/$(PACKAGE)_* *.changes
57 distclean: clean