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