Debian package updates by Jochen Kunkel
[openxpki.git] / trunk / package / debian / Makefile
blob994d9c75de3958817c644fa89c6b2d257660bad7
2 # we need this packages to build external cpan modules (debian etch)
3 # libversion-perl libmodule-build-perl iblog-log4perl-perl libdatetime-perl
4 # libapache-request-perl libtest-exception-perl libxml-sax-perl
5 # libxml-sax-writer-perl libtree-dagnode-perl liburi-perl
6 # libclass-factory-perl libxml-simple-perl libdatetime-format-strptime-perl
7 # libhttp-server-simple-perl libdata-page-perl
9 # do not change the order
10 # some packages have build dependencies
11 PACKAGES= \
12 core \
13 perl-client-api \
14 deployment \
15 mason-html-client \
16 scep-client \
17 i18n
20 # Data::Password Data::Serializer DateTime::Format::DateParse IPC::ShareLite
21 # Locale::TextDomain Proc::ProcessTable Sys::SigAction Workflow
22 # XML::Filter::XInclude XML::SAX::PurePerl XML::Validator::Schema
23 # Exception::Class 1.22 Added Exception::Class::Base->caught()
25 EXTERNAL= \
26 Devel__StackTrace \
27 Exception__Class \
28 HTML__Mason \
29 Class__Std \
30 Config__Std \
31 Data__Password \
32 Proc__ProcessTable \
33 Sys__SigAction \
34 Workflow \
35 XML__Filter__XInclude \
36 XML__Validator__Schema \
37 Data__Serializer \
38 DateTime__Format__DateParse \
39 Class__Observable \
40 DBD__Mock \
41 Hook__LexWrap \
42 HTTP__Server__Simple__Mason \
43 Test__HTTP__Server__Simple \
44 Data__SpreadPagination
46 .PHONY : $(PACKAGES) $(EXTERNAL)
48 cpan_dependency: $(EXTERNAL)
50 default: clean
51 make $(EXTERNAL)
52 make $(PACKAGES)
53 make resultlocal
54 make check
56 $(EXTERNAL):
57 cd deb/cpan/ && dh-make-perl --build --notest --cpan $(subst __,::,$@)
59 $(PACKAGES):
60 cd $@ && PATH=$(PATH):/usr/sbin make $(SUBTARGET)
62 resultlocal:
63 mv */*.dsc . || echo No dsc file present.
64 mv */*.dsc.asc . || echo No asc file present.
65 mv */*.tar.gz . || echo No source file present.
66 mv */*.deb . || echo No debian package file present.
67 mv */*.changes . || echo No changes file present.
69 check:
70 # use -i to see more details
71 lintian *.deb
73 clean:
74 cd deb/cpan/ && rm -f *.dsc *.dsc.asc *.tar.gz *.deb *.changes
75 make $(PACKAGES) SUBTARGET=clean
76 cd deb/cpan/ && for DIR in $(subst __,-,$(EXTERNAL)); do \
77 rm -rf $$DIR-*; \
78 done
80 distclean: clean