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