summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-08-03 20:49:26 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-08-03 20:49:26 +0000
commitc71919f150e72d13f693accf8d6d3b53f9af3838 (patch)
tree05bec4fb498fbfcdda08edeba1d3b27ce1fbf192 /Makefile
parent06ea945b48c180796782dd7e59895a5e0f9b9c0a (diff)
downloadperl_checker-c71919f150e72d13f693accf8d6d3b53f9af3838.tar
perl_checker-c71919f150e72d13f693accf8d6d3b53f9af3838.tar.gz
perl_checker-c71919f150e72d13f693accf8d6d3b53f9af3838.tar.bz2
perl_checker-c71919f150e72d13f693accf8d6d3b53f9af3838.tar.xz
perl_checker-c71919f150e72d13f693accf8d6d3b53f9af3838.zip
doc terminated and added as index.html
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2733a54..9417e53 100644
--- a/Makefile
+++ b/Makefile
@@ -5,13 +5,24 @@ PREFIX = /usr
BINDIR = $(PREFIX)/bin
INSTALLSITEARCH = $(shell eval "`perl -V:installsitelib`"; echo $$installsitelib | sed 's,/usr,$(PREFIX),')
+GENERATED = MDK/Common.pm index.html
+
+all: $(GENERATED) test
+
+index.html: MDK/Common.pm
+ pod2html $< > $@
+
+MDK/Common.pm: %: %.pl
+ perl $< > $@
+
test:
./perl_checker MDK/Common/*.pm
clean:
+ rm -f $(GENERATED)
find -name "*~" | xargs rm -rf
-install: clean test
+install: clean all
install -d $(BINDIR) $(INSTALLSITEARCH)/MDK/Common
install perl_checker $(BINDIR)
install -m 644 MDK/Common.pm $(INSTALLSITEARCH)/MDK