]> git.donarmstrong.com Git - debbugs.git/blobdiff - Makefile
serve_cache is not exported by Debbugs::Libravatar
[debbugs.git] / Makefile
index da8de6085d0c1fc8611bdd633d77350c9d003bd0..19a074bb0abba18683d8e3c56cc5b2028c94b58f 100644 (file)
--- 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