Debian package changes by Jochen Kunkel: create directories, add libdevel-stacktrace...
[openxpki.git] / trunk / package / debian / Makefile
blob12a2aadee94c5c0e7d6583141b9a07bb412beeeb
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 test -d deb || mkdir deb
58 test -d deb/cpan || mkdir deb/cpan/
59 cd deb/cpan/ && dh-make-perl --build --notest --cpan $(subst __,::,$@)
61 $(PACKAGES):
62 test -d deb || mkdir deb
63 cd $@ && PATH=$(PATH):/usr/sbin make $(SUBTARGET)
65 resultlocal:
66 mv */*.dsc . || echo No dsc file present.
67 mv */*.dsc.asc . || echo No asc file present.
68 mv */*.tar.gz . || echo No source file present.
69 mv */*.deb . || echo No debian package file present.
70 mv */*.changes . || echo No changes file present.
72 check:
73 # use -i to see more details
74 lintian *.deb
76 clean:
77 cd deb/cpan/ && rm -f *.dsc *.dsc.asc *.tar.gz *.deb *.changes
78 make $(PACKAGES) SUBTARGET=clean
79 cd deb/cpan/ && for DIR in $(subst __,-,$(EXTERNAL)); do \
80 rm -rf $$DIR-*; \
81 done
83 distclean: clean