]> git.donarmstrong.com Git - lilypond.git/blob - stepmake/stepmake/Toplevel.make
450eaf55711a675c95fbf0d2c2b919f1ba8fa5aa
[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 local-dist: 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         -ln -f $(depth)/$(distname).diff.gz out-www
31         find `find Documentation -type d -name 'out-www'` -not -name '*dvi' -not -name '*ly' -not -name '*tex' -not -name '*.ps' -not -name 'out-www' > wwwlist
32
33         tar cfz $(outdir)/htmldoc.tar.gz  `cat wwwlist` $(shell ls *.gif (ERRORLOG)) `ls out-www/$(distname).diff.gz $(ERRORLOG)`
34
35
36
37 # if you fix this, please fix yodl too!
38 check-top-web:
39         $(MAKE) -C Documentation/topdocs WWW
40
41 local-WWW: #index.html 
42
43 index.html: check-top-web NEWS
44         $(sed-version) < Documentation/topdocs/$(outdir)/topweb.html > $@
45         $(PYTHON) $(step-bindir)/add-html-footer.py --package=$(topdir) --index=Documentation/top-docs/out-www/index.html $@
46
47 WWW-clean:
48         $(MAKE) CONFIGSUFFIX='www' clean
49
50
51 dist:   check-state-vector
52         rm -rf $(distdir)
53         $(MAKE) local-dist $(distdir)
54         chmod -R a+r $(distdir)
55         chmod  a+x `find $(distdir) -type d -print` 
56         (cd ./$(depth)/$(outdir); $(TAR) cf - $(DIST_NAME) | gzip -9 > $(DIST_NAME).tar.gz)
57 # ugh.
58 # Can't compare "stage1" dist with "stage2" dist in this way?
59         -ln -f $(depth)/$(outdir)/$(distname).tar.gz $(release-dir)
60         rm -rf ./$(distdir)/
61
62 local-help:
63         @echo -e "\
64   dist        roll tarball: $(outdir)/$(package)-$(TOPLEVEL_VERSION).tar.gz\n"
65