]> git.donarmstrong.com Git - lilypond.git/blob - stepmake/stepmake/Toplevel.make
release: 1.0.1
[lilypond.git] / stepmake / stepmake / Toplevel.make
1 # -*-Makefile-*-
2 # title    Toplevel.make
3
4 # override Variables.make:
5 # do not dist ./Makefile (is copied from make/Toplevel.make)
6
7 DIST_FILES := $(EXTRA_DIST_FILES) 
8 #
9
10 localdist: configure 
11
12 local-distclean: 
13         rm -f config.hh config.make Makefile config.cache \
14                 config.status config.log index.html
15
16 local-maintainerclean:
17         rm -f configure
18
19 Makefile: make/Toplevel.make.in
20         chmod +w $@
21         echo "# WARNING WARNING WARNING WARNING" > $@
22         echo "# do not edit! this is generated from make/Toplevel.make.in" >> $@
23         cat $< >> $@
24         chmod -w $@
25
26 htmldoc: 
27         $(MAKE) CONFIGSUFFIX='www' local-WWW
28         $(MAKE) CONFIGSUFFIX='www' -C Documentation WWW
29         rm -f `find . -name \*.html~ -print`
30         tar cfz $(outdir)/htmldoc.tar.gz  `find Documentation -type d -name 'out-www' -print` index.html $(shell ls *.gif $(ERRORLOG))
31
32
33 # if you fix this, please fix yodl too!
34 check-top-web:
35         $(MAKE) -C Documentation/topdocs WWW
36
37 local-WWW: #index.html 
38
39 index.html: check-top-web NEWS
40         $(sed-version) < Documentation/topdocs/$(outdir)/topweb.html > $@
41         $(PYTHON) $(step-bindir)/add-html-footer.py --package=$(topdir) --index=Documentation/top-docs/out-www/index.html $@
42
43 WWW-clean:
44         $(MAKE) CONFIGSUFFIX='www' clean
45
46
47 dist:   check-state-vector
48         rm -rf $(distdir)
49         -mkdir $(distdir)
50         $(MAKE) localdist $(distdir)
51         chmod -R a+r $(distdir)
52         chmod  a+x `find $(distdir) -type d -print` 
53         (cd ./$(depth)/$(outdir); $(TAR) cf - $(DIST_NAME) | gzip -9 > $(DIST_NAME).tar.gz)
54 # ugh.
55 # Can't compare "stage1" dist with "stage2" dist in this way?
56         -ln -f $(depth)/$(outdir)/$(distname).tar.gz $(release-dir)
57         rm -rf ./$(distdir)/
58
59 local-help:
60         @echo -e "\
61   dist        roll tarball: $(outdir)/$(package)-$(TOPLEVEL_VERSION).tar.gz\n"
62