Initial revision
[bse.git] / Makefile
CommitLineData
0e47d11c 1VERSION=0.10_01
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
6e73144d
TC
10 @echo make distdir - build distribution directory
11 @echo make docs - build documentation
41b9d8ec
TC
12
13# this target needs to be modified so that the output directory includes
14# the release number
15dist: $(DISTTGZ)
16
17$(DISTTGZ): distdir
18 if [ -e $(DISTTGZ) ] ; \
19 then echo $(DISTTGZ) already exists ; \
20 exit 1 ; \
21 fi
22 tar cf $(DISTTAR) $(DISTBUILD)
23 -rm -rf $(DISTBUILD)
24 gzip $(DISTTAR)
25
26# tar czf $(DISTFILE) -C .. bse --exclude '*~' --exclude '*,v' --exclude 'pod2html-*cache'
27
28distdir:
29 -rm -rf $(DISTBUILD)
30 perl -MExtUtils::Manifest=manicopy,maniread -e "manicopy(maniread(), '$(DISTBUILD)')"
6e73144d
TC
31 mkdir $(DISTBUILD)/site/htdocs/shop
32 find $(DISTBUILD) -type f | xargs chmod u+w
41b9d8ec
TC
33
34clean:
35 -rm site/htdocs/index.html
36 -rm site/htdocs/shop/*.html
37 -rm site/htdocs/a/*.html
38 -cd site/htdocs/images ; \
39 for i in *.gif ; do \
40 if [ $$i != trans_pixel.gif ] ; then \
41 rm $$i ; \
42 fi ; \
43 done
44 -rm site/htdocs/images/*.jpg
ddc67ac5 45 -rm -rf $(DISTBUILD)
41b9d8ec 46
6e73144d 47docs: INSTALL.txt INSTALL.html otherdocs
41b9d8ec 48
6e73144d
TC
49INSTALL.txt: INSTALL.pod
50 pod2text <INSTALL.pod >INSTALL.txt
41b9d8ec
TC
51
52INSTALL.html: INSTALL.pod
53 pod2html --infile=INSTALL.pod --outfile=INSTALL.html
54 -rm pod2html-dircache pod2html-itemcache
55
56otherdocs:
57 cd site/docs ; make all
6e73144d
TC
58
59# this is very rough
60testinst: distdir
61 perl localinst.perl $(DISTBUILD)