summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile13
-rw-r--r--perl-MDK-Common.spec8
2 files changed, 18 insertions, 3 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
diff --git a/perl-MDK-Common.spec b/perl-MDK-Common.spec
index bcf2471..dde79e6 100644
--- a/perl-MDK-Common.spec
+++ b/perl-MDK-Common.spec
@@ -2,7 +2,7 @@
# do not change the version here, change in MDK/Common.pm
%define version THEVERSION
-%define release 0.3mdk
+%define release 1mdk
%define perl_sitelib %(eval "`perl -V:installsitelib`"; echo $installsitelib)
Summary: Various simple functions
@@ -33,12 +33,16 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
-%doc COPYING
+%doc COPYING index.html
%{_bindir}/*
%{perl_sitelib}/MDK
# MODIFY IN THE CVS: cvs.mandrakesoft.com:/cooker soft/perl-MDK-Common
%changelog
+* Fri Aug 3 2001 Pixel <pixel@mandrakesoft.com> 1.0-1mdk
+- doc finished
+- index.html added (nicer than perldoc)
+
* Fri Aug 3 2001 Pixel <pixel@mandrakesoft.com> 1.0-0.3mdk
- much doc added