]> git.donarmstrong.com Git - lilypond.git/blob - stepmake/stepmake/toplevel-targets.make
a8db4c32876a88d9288d597d086fb1ed195ed2fa
[lilypond.git] / stepmake / stepmake / toplevel-targets.make
1 include $(stepdir)/www-targets.make
2
3 local-dist: configure 
4
5 # urg!: this gets into every package (ie: yodl)
6 local-distclean: 
7         rm -f config.h config.hh config.make Makefile GNUmakefile \
8                 config.cache config.status config.log index.html \
9                 stepmake/stepmake/stepmake stepmake/stepmake/bin
10
11 local-maintainerclean:
12         rm -f configure
13
14 GNUmakefile: GNUmakefile.in
15         $(MAKE) INFILE=$< OUTFILE=$@ -f $(stepdir)/automatically-generated.sub.make
16
17 ifneq ($(PACKAGE),STEPMAKE)
18 aclocal.m4: $(stepmake)/aclocal.m4
19         $(MAKE) INFILE=$< OUTFILE=$@ LINECOMMENT=dnl -f $(stepdir)/automatically-generated.sub.make
20 endif
21
22
23 $(package-icon):
24         $(MAKE) -C Documentation/pictures icon
25
26
27 do-top-doc:
28         -$(MAKE) -C Documentation/topdocs/ README_TOP_FILES="$(README_TXT_FILES)" copy-to-top
29
30
31 $(README_TXT_FILES): do-top-doc
32
33 local-clean:
34
35 local-dist: do-top-doc
36
37 dist:
38         rm -rf $(distdir)
39         $(MAKE) local-dist $(distdir)
40         chmod -R a+r $(distdir)
41         chmod  a+x `find $(distdir) -type d -print` 
42         (cd ./$(depth)/$(outdir); $(TAR) -cf -  --owner=0 --group=0 $(DIST_NAME) | gzip -9 > $(DIST_NAME).tar.gz)
43 # ugh.
44 # Can't compare "stage1" dist with "stage2" dist in this way?
45         -ln -f $(depth)/$(outdir)/$(distname).tar.gz $(release-dir)
46         rm -rf $(distdir)/
47
48 #
49 #
50 local-help:
51         @echo -e "\
52   config      rerun configure\n\
53   deb         build Debian package\n\
54   diff        generate patch: $(depth)/$(outdir)/$(distname).diff.gz\n\
55   .           Options:\n\
56   .             from=0.1.74\n\
57   .             help==\n\
58   .             release==\n\
59   .             to=0.1.74.jcn2\n\
60   dist        roll tarball: $(depth)/$(outdir)/$(distname).tar.gz\n\
61   distclean   cleaner than clean (duh)\n\
62   doc         update all documentation\n\
63   release     roll tarball and generate patch\n\
64   rpm         build rpm (Red Hat) package\n\
65   po          make new translation Portable Object database\n\
66   po-replace  do po-update and replace catalogs with msgmerged versions\n\
67   po-update   update translation Portable Object database\n\
68   web         update website in out-www\n\
69   web-doc     generate documentation website\n\
70   web-clean   clean out-www\n\
71 \n\
72 Some of these top level targets (diff, dist, release) can be issued\n\
73 from anywhere in the source tree.\n\
74 "\
75 #