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