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', |
10 |
'Getopt::Long', |
'Getopt::Long', |
11 |
'Email::Valid', |
'Email::Valid', |
12 |
'Email::Send', |
'Email::Send', |
13 |
'Carp', |
'Carp', |
14 |
|
'SOAP::Lite', |
15 |
}, # e.g., Module::Name => 1.1 |
}, # e.g., Module::Name => 1.1 |
16 |
($] >= 5.005 ? ## Add these new keywords supported since 5.005 |
($] >= 5.005 ? ## Add these new keywords supported since 5.005 |
17 |
(ABSTRACT_FROM => 'lib/Nos.pm', # retrieve abstract from module |
(ABSTRACT_FROM => 'Nos.pm', # retrieve abstract from module |
18 |
AUTHOR => 'Dobrica Pavlinusic <dpavlin@rot13.org>') : ()), |
AUTHOR => 'Dobrica Pavlinusic <dpavlin@rot13.org>') : ()), |
19 |
); |
); |
20 |
|
|
26 |
html: $(TO_INST_PM) |
html: $(TO_INST_PM) |
27 |
test -e $(HTML_DIR) || mkdir $(HTML_DIR) |
test -e $(HTML_DIR) || mkdir $(HTML_DIR) |
28 |
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)" |
29 |
|
ls *.cgi | cut -d. -f1 | xargs -i sh -c "pod2html --infile {}.* --outfile $(HTML_DIR)/{}.html --htmldir $(HTML_DIR)" |
30 |
rm -f pod2htm?.tmp |
rm -f pod2htm?.tmp |
31 |
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 |
32 |
|
|
39 |
db=notices |
db=notices |
40 |
|
|
41 |
init: |
init: |
42 |
dropdb $(db) |
dropdb $(db) || true |
43 |
createdb $(db) |
createdb $(db) |
44 |
psql $(db) < schema.sql |
psql $(db) < schema.sql |
45 |
|
|