test:
$(PERL) -MTest::Harness -I. -e 'runtests(glob(q(t/*.t)))'
+test_%: t/%.t
+ $(PERL) -MTest::Harness -I. -e 'runtests(q($<))'
+
+testcover:
+ PERLLIB=t/cover_lib/ cover -test
+
clean:
if [ -e Makefile.perl ]; then \
$(MAKE) -f Makefile.perl clean; \
# create the directories if they aren't there
for dir in $(sbin_dir) $(etc_dir)/html $(etc_dir)/indices \
$(var_dir)/indices $(var_dir)/www/cgi $(var_dir)/www/db $(var_dir)/www/txt \
+$(var_dir)/www/css \
$(var_dir)/spool/lock $(var_dir)/spool/archive $(var_dir)/spool/incoming \
$(var_dir)/spool/db-h $(scripts_dir) $(examples_dir) $(man8_dir); \
do test -d $$dir || $(install_exec) -d $$dir; done
# install the HTML pages etc
$(foreach html, $(htmls_in), $(install_data) $(html) $(etc_dir)/html;)
$(install_data) html/htaccess $(var_dir)/www/db/.htaccess
- $(install_data) html/bugs.css $(var_dir)/www/bugs.css
+ $(install_data) html/bugs.css $(var_dir)/www/css/bugs.css
# install the CGIs
for cgi in $(cgis); do $(install_exec) $$cgi $(var_dir)/www/cgi; done
$(install_data) misc/updateseqs $(var_dir)/spool
# install the templates
- $(foreach dir, $(wildcard templates/*/*), $(exec -d $(install_exec) $(template_dir)/$(patsubst templates/%,%,$(dir))))
- $(foreach tmpl, $(wildcard templates/*/*/*.tmpl), $(exec $(install_data) $(tmpl) $(template_dir)/$(patsubst templates/%,%,$(tmpl))))
+ $(foreach dir, $(wildcard templates/*/*), $(install_exec) -d $(templates_dir)/$(patsubst templates/%,%,$(dir));)
+ $(foreach tmpl, $(wildcard templates/*/*/*.tmpl), $(install_data) $(tmpl) $(templates_dir)/$(patsubst templates/%,%,$(tmpl));)
-.PHONY: test build
\ No newline at end of file
+.PHONY: test build