X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Makefile;h=19a074bb0abba18683d8e3c56cc5b2028c94b58f;hb=4c244879af2b9e8c0055968d7ffb054646cb7607;hp=da8de6085d0c1fc8611bdd633d77350c9d003bd0;hpb=428aeea32c686fa2227dd113242d263afba12b8a;p=debbugs.git diff --git a/Makefile b/Makefile index da8de60..19a074b 100644 --- a/Makefile +++ b/Makefile @@ -34,6 +34,9 @@ build: 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 @@ -53,6 +56,7 @@ install_mostfiles: # 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 @@ -79,7 +83,7 @@ $(var_dir)/spool/db-h $(scripts_dir) $(examples_dir) $(man8_dir); \ # 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 @@ -102,8 +106,8 @@ $(var_dir)/spool/db-h $(scripts_dir) $(examples_dir) $(man8_dir); \ $(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