]> git.donarmstrong.com Git - lilypond.git/blob - stepmake/stepmake/toplevel-targets.make
9670c1b8b0ff051d5434a7473dd7c6a0006c9607
[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
21 autogen.sh: $(stepmake)/autogen.sh
22         $(MAKE) INFILE=$< OUTFILE=$@ LINECOMMENT=\# -f $(stepdir)/automatically-generated.sub.make
23         chmod +x autogen.sh
24 endif
25
26
27 $(package-icon):
28         $(MAKE) -C Documentation/pictures icon
29
30
31 do-top-doc:
32         -$(MAKE) -C Documentation/topdocs/ README_TOP_FILES="$(README_TXT_FILES)" copy-to-top
33
34
35 $(README_TXT_FILES): do-top-doc
36
37 local-clean:
38
39 install:
40         $(LOOP)
41 ifeq ($(strip $(SRCMAKE)),)
42         $(MAKE) final-install
43 endif
44
45 local-dist: do-top-doc
46
47 dist:
48         rm -rf $(distdir)
49         $(MAKE) local-dist $(distdir)
50         chmod -R a+r $(distdir)
51         chmod  a+x `find $(distdir) -type d -print` 
52         (cd ./$(depth)/$(outdir); $(TAR) -cf -  --owner=0 --group=0 $(DIST_NAME) | gzip -9 > $(DIST_NAME).tar.gz)
53 # ugh.
54 # Can't compare "stage1" dist with "stage2" dist in this way?
55         -ln -f $(depth)/$(outdir)/$(distname).tar.gz $(release-dir)
56         rm -rf $(distdir)/
57
58 #
59 #
60 local-help:
61         @echo -e "\
62   config      rerun configure\n\
63   deb         build Debian package\n\
64   diff        generate patch: $(depth)/$(outdir)/$(distname).diff.gz\n\
65   .           Options:\n\
66   .             from=0.1.74\n\
67   .             help==\n\
68   .             release==\n\
69   .             to=0.1.74.jcn2\n\
70   dist        roll tarball: $(depth)/$(outdir)/$(distname).tar.gz\n\
71   distclean   cleaner than clean (duh)\n\
72   doc         update all documentation\n\
73   release     roll tarball and generate patch\n\
74   rpm         build rpm (Red Hat) package\n\
75   rpm-mdk     build rpm (Mandrake) packages\n\
76   pfa-fonts   build type1 fonts in mf/$(outdir)\n\
77   install-pfa-fonts install type1 fonts in $(local_lilypond_datadir)/fonts/\n\
78   po          make new translation Portable Object database\n\
79   po          make new translation Portable Object database\n\
80   po-replace  do po-update and replace catalogs with msgmerged versions\n\
81   po-update   update translation Portable Object database\n\
82 \n\
83 Some of these top level targets (diff, dist, release) can be issued\n\
84 from anywhere in the source tree.\n\
85 "\
86 #
87