4 |
# the contents of the Makefile that is written. |
# the contents of the Makefile that is written. |
5 |
WriteMakefile( |
WriteMakefile( |
6 |
NAME => 'Nos', |
NAME => 'Nos', |
7 |
VERSION_FROM => 'lib/Nos.pm', # finds $VERSION |
VERSION_FROM => 'Nos.pm', # finds $VERSION |
8 |
PREREQ_PM => { |
PREREQ_PM => { |
9 |
'Class::DBI::Loader', |
'Class::DBI::Loader' => 0, |
10 |
'Getopt::Long', |
'Class::DBI::Pg' => 0, |
11 |
'Email::Valid', |
'Class::DBI::AbstractSearch' => 0, |
12 |
'Email::Send', |
'DBD::Pg' => 1.42, |
13 |
'Carp', |
'Getopt::Long' => 0, |
14 |
|
'Email::Valid' => 0, |
15 |
|
'Email::Send' => 0, |
16 |
|
'IO::All' => 0, |
17 |
|
'Carp' => 0, |
18 |
|
'SOAP::Lite' => 0, |
19 |
|
'Email::Auth::AddressHash' => 0, |
20 |
|
'Email::Simple' => 0, |
21 |
|
'Email::Address' => 0, |
22 |
|
'Mail::DeliveryStatus::BounceParser' => 0, |
23 |
}, # e.g., Module::Name => 1.1 |
}, # e.g., Module::Name => 1.1 |
24 |
($] >= 5.005 ? ## Add these new keywords supported since 5.005 |
($] >= 5.005 ? ## Add these new keywords supported since 5.005 |
25 |
(ABSTRACT_FROM => 'lib/Nos.pm', # retrieve abstract from module |
(ABSTRACT_FROM => 'Nos.pm', # retrieve abstract from module |
26 |
AUTHOR => 'Dobrica Pavlinusic <dpavlin@rot13.org>') : ()), |
AUTHOR => 'Dobrica Pavlinusic <dpavlin@rot13.org>') : ()), |
27 |
); |
); |
28 |
|
|
34 |
html: $(TO_INST_PM) |
html: $(TO_INST_PM) |
35 |
test -e $(HTML_DIR) || mkdir $(HTML_DIR) |
test -e $(HTML_DIR) || mkdir $(HTML_DIR) |
36 |
ls $(MAN1PODS) $(MAN3PODS) | cut -d. -f1 | xargs -i sh -c "pod2html --infile {}.p[lm] --outfile $(HTML_DIR)/{}.html --htmldir $(HTML_DIR)" |
ls $(MAN1PODS) $(MAN3PODS) | cut -d. -f1 | xargs -i sh -c "pod2html --infile {}.p[lm] --outfile $(HTML_DIR)/{}.html --htmldir $(HTML_DIR)" |
37 |
|
ls *.cgi | cut -d. -f1 | xargs -i sh -c "pod2html --infile {}.* --outfile $(HTML_DIR)/{}.html --htmldir $(HTML_DIR)" |
38 |
rm -f pod2htm?.tmp |
rm -f pod2htm?.tmp |
39 |
test ! -z "`which svn2html.pl`" && svn update && svn2html.pl > $(HTML_DIR)/Changes.html |
test ! -z "`which svn2html.pl`" && svn update && svn2html.pl > $(HTML_DIR)/Changes.html |
40 |
|
test ! -z "`which postgresql_autodoc`" && cd $(HTML_DIR) && postgresql_autodoc -d notices && dot -Tpng -o notices.png notices.dot |
41 |
|
|
42 |
changelog: |
changelog: |
43 |
svn update && svn -v log > Changes |
svn update && svn -v log > Changes |
48 |
db=notices |
db=notices |
49 |
|
|
50 |
init: |
init: |
51 |
dropdb $(db) |
dropdb $(db) || true |
52 |
createdb $(db) |
createdb $(db) |
53 |
psql $(db) < schema.sql |
psql $(db) < schema.sql |
54 |
|
|