RT notifier: parse templates without header correctly
[openxpki.git] / trunk / package / debian / Makefile
blob939d3b6770dd27468cedfb49dbc5349ce16824b4
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 \
45 Class__Accessor__Chained \
46 Class__Accessor \
47 Crypt__OpenSSL__AES
49 .PHONY : $(PACKAGES) $(EXTERNAL)
51 cpan_dependency: $(EXTERNAL)
53 default: clean
54 make $(EXTERNAL)
55 make $(PACKAGES)
56 make resultlocal
57 make check
59 $(EXTERNAL):
60 test -d deb || mkdir deb
61 test -d deb/cpan || mkdir deb/cpan/
62 cd deb/cpan/ && dh-make-perl --build --notest --cpan $(subst __,::,$@)
63 #cd deb/cpan/ && dh-make-perl --build --cpan $(subst __,::,$@)
65 $(PACKAGES):
66 test -d deb || mkdir deb
67 cd $@ && PATH=$(PATH):/usr/sbin make $(SUBTARGET)
69 resultlocal:
70 mv */*.dsc . || echo No dsc file present.
71 mv */*.dsc.asc . || echo No asc file present.
72 mv */*.tar.gz . || echo No source file present.
73 mv */*.deb . || echo No debian package file present.
74 mv */*.changes . || echo No changes file present.
76 check:
77 # use -i to see more details
78 lintian *.deb
80 clean:
81 cd deb/cpan/ && rm -f *.dsc *.dsc.asc *.tar.gz *.deb *.changes
82 make $(PACKAGES) SUBTARGET=clean
83 cd deb/cpan/ && for DIR in $(subst __,-,$(EXTERNAL)); do \
84 rm -rf $$DIR-*; \
85 done
87 distclean: clean