many updates
[bse.git] / Makefile
CommitLineData
82f774a2 1VERSION=0.09adrian2
41b9d8ec
TC
2DISTNAME=bse-$(VERSION)
3DISTBUILD=$(DISTNAME)
4DISTTAR=../$(DISTNAME).tar
5DISTTGZ=$(DISTTAR).gz
6
7help:
8 @echo make dist - build the tar.gz file
9 @echo make clean - delete generated files
10
11# this target needs to be modified so that the output directory includes
12# the release number
13dist: $(DISTTGZ)
14
15$(DISTTGZ): distdir
16 if [ -e $(DISTTGZ) ] ; \
17 then echo $(DISTTGZ) already exists ; \
18 exit 1 ; \
19 fi
20 tar cf $(DISTTAR) $(DISTBUILD)
21 -rm -rf $(DISTBUILD)
22 gzip $(DISTTAR)
23
24# tar czf $(DISTFILE) -C .. bse --exclude '*~' --exclude '*,v' --exclude 'pod2html-*cache'
25
26distdir:
27 -rm -rf $(DISTBUILD)
28 perl -MExtUtils::Manifest=manicopy,maniread -e "manicopy(maniread(), '$(DISTBUILD)')"
29
30clean:
31 -rm site/htdocs/index.html
32 -rm site/htdocs/shop/*.html
33 -rm site/htdocs/a/*.html
34 -cd site/htdocs/images ; \
35 for i in *.gif ; do \
36 if [ $$i != trans_pixel.gif ] ; then \
37 rm $$i ; \
38 fi ; \
39 done
40 -rm site/htdocs/images/*.jpg
41 -rm -rf $DISTBUILD
42
43docs: INSTALL INSTALL.html otherdocs
44
45INSTALL: INSTALL.pod
46 pod2text <INSTALL.pod >INSTALL
47
48INSTALL.html: INSTALL.pod
49 pod2html --infile=INSTALL.pod --outfile=INSTALL.html
50 -rm pod2html-dircache pod2html-itemcache
51
52otherdocs:
53 cd site/docs ; make all