]>
Commit | Line | Data |
---|---|---|
f7fcde8f | 1 | VERSION=0.11_04 |
41b9d8ec TC |
2 | DISTNAME=bse-$(VERSION) |
3 | DISTBUILD=$(DISTNAME) | |
4 | DISTTAR=../$(DISTNAME).tar | |
5 | DISTTGZ=$(DISTTAR).gz | |
6 | ||
7 | help: | |
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 | |
15 | dist: $(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) | |
09a131dd | 23 | -perl -MExtUtils::Command -e rm_rf $(DISTBUILD) |
41b9d8ec TC |
24 | gzip $(DISTTAR) |
25 | ||
26 | # tar czf $(DISTFILE) -C .. bse --exclude '*~' --exclude '*,v' --exclude 'pod2html-*cache' | |
27 | ||
420d100c | 28 | distdir: docs |
09a131dd | 29 | -perl -MExtUtils::Command -e rm_rf $(DISTBUILD) |
41b9d8ec | 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 | |
34 | clean: | |
09a131dd | 35 | -perl -MExtUtils::Command -e rm_f site/htdocs/index.html site/htdocs/shop/*.html site/htdocs/a/*.html |
41b9d8ec TC |
36 | -cd site/htdocs/images ; \ |
37 | for i in *.gif ; do \ | |
38 | if [ $$i != trans_pixel.gif ] ; then \ | |
39 | rm $$i ; \ | |
40 | fi ; \ | |
41 | done | |
09a131dd TC |
42 | -perl -MExtUtils::Command -e rm_f site/htdocs/images/*.jpg |
43 | -perl -MExtUtils::Command -e rm_rf $(DISTBUILD) | |
41b9d8ec | 44 | |
6e73144d | 45 | docs: INSTALL.txt INSTALL.html otherdocs |
41b9d8ec | 46 | |
6e73144d TC |
47 | INSTALL.txt: INSTALL.pod |
48 | pod2text <INSTALL.pod >INSTALL.txt | |
41b9d8ec TC |
49 | |
50 | INSTALL.html: INSTALL.pod | |
51 | pod2html --infile=INSTALL.pod --outfile=INSTALL.html | |
52 | -rm pod2html-dircache pod2html-itemcache | |
53 | ||
54 | otherdocs: | |
55 | cd site/docs ; make all | |
6e73144d TC |
56 | |
57 | # this is very rough | |
58 | testinst: distdir | |
59 | perl localinst.perl $(DISTBUILD) | |
09a131dd | 60 | perl -MExtUtils::Command -e rm_rf $(DISTBUILD) |
34bc5961 TC |
61 | |
62 | testfiles: distdir | |
63 | perl localinst.perl $(DISTBUILD) leavedb | |
09a131dd TC |
64 | perl -MExtUtils::Command -e rm_rf $(DISTBUILD) |
65 | ||
34bc5961 | 66 |