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
commit0d2243aab0b6ba7fc241fae4a20b1a9a31540a26 (patch)
tree6c8e2e5be2a286b20c92743f54ca566a1be0fade /Makefile
parent36c71dae935ba4b18896ffcfc069a64130731dfd (diff)
downloadperl-MDK-Common-0d2243aab0b6ba7fc241fae4a20b1a9a31540a26.tar
perl-MDK-Common-0d2243aab0b6ba7fc241fae4a20b1a9a31540a26.tar.gz
perl-MDK-Common-0d2243aab0b6ba7fc241fae4a20b1a9a31540a26.tar.bz2
perl-MDK-Common-0d2243aab0b6ba7fc241fae4a20b1a9a31540a26.tar.xz
perl-MDK-Common-0d2243aab0b6ba7fc241fae4a20b1a9a31540a26.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