2 DISTNAME=bse-$(VERSION)
4 DISTTAR=../$(DISTNAME).tar
8 @echo make dist - build the tar.gz file
9 @echo make clean - delete generated files
10 @echo make distdir - build distribution directory
11 @echo make docs - build documentation
13 # this target needs to be modified so that the output directory includes
18 if [ -e $(DISTTGZ) ] ; \
19 then echo $(DISTTGZ) already exists ; \
22 tar cf $(DISTTAR) $(DISTBUILD)
23 -perl -MExtUtils::Command -e rm_rf $(DISTBUILD)
26 # tar czf $(DISTFILE) -C .. bse --exclude '*~' --exclude '*,v' --exclude 'pod2html-*cache'
29 -perl -MExtUtils::Command -e rm_rf $(DISTBUILD)
30 perl -MExtUtils::Manifest=manicopy,maniread -e "manicopy(maniread(), '$(DISTBUILD)')"
31 mkdir $(DISTBUILD)/site/htdocs/shop
32 find $(DISTBUILD) -type f | xargs chmod u+w
35 -perl -MExtUtils::Command -e rm_f site/htdocs/index.html site/htdocs/shop/*.html site/htdocs/a/*.html
36 -cd site/htdocs/images ; \
38 if [ $$i != trans_pixel.gif ] ; then \
42 -perl -MExtUtils::Command -e rm_f site/htdocs/images/*.jpg
43 -perl -MExtUtils::Command -e rm_rf $(DISTBUILD)
45 docs: INSTALL.txt INSTALL.html otherdocs
47 INSTALL.txt: INSTALL.pod
48 pod2text <INSTALL.pod >INSTALL.txt
50 INSTALL.html: INSTALL.pod
51 pod2html --infile=INSTALL.pod --outfile=INSTALL.html
52 -rm pod2html-dircache pod2html-itemcache
55 cd site/docs ; make all
59 perl localinst.perl $(DISTBUILD)
60 perl -MExtUtils::Command -e rm_rf $(DISTBUILD)
63 perl localinst.perl $(DISTBUILD) leavedb
64 perl -MExtUtils::Command -e rm_rf $(DISTBUILD)