]> git.donarmstrong.com Git - lilypond.git/blob - stepmake/stepmake/toplevel-targets.make
rename target.
[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 local-dist: do-top-doc
40
41 dist:
42         rm -rf $(distdir)
43         $(MAKE) local-dist $(distdir)
44         chmod -R a+r $(distdir)
45         chmod  a+x `find $(distdir) -type d -print` 
46         (cd ./$(depth)/$(outdir); $(TAR) -cf -  --owner=0 --group=0 $(DIST_NAME) | gzip -9 > $(DIST_NAME).tar.gz)
47 # ugh.
48 # Can't compare "stage1" dist with "stage2" dist in this way?
49         -ln -f $(depth)/$(outdir)/$(distname).tar.gz $(release-dir)
50         rm -rf $(distdir)/
51
52 #
53 #
54 local-help:
55         @echo -e "\
56   config      rerun configure\n\
57   deb         build Debian package\n\
58   diff        generate patch: $(depth)/$(outdir)/$(distname).diff.gz\n\
59   .           Options:\n\
60   .             from=0.1.74\n\
61   .             help==\n\
62   .             release==\n\
63   .             to=0.1.74.jcn2\n\
64   dist        roll tarball: $(depth)/$(outdir)/$(distname).tar.gz\n\
65   distclean   cleaner than clean (duh)\n\
66   doc         update all documentation\n\
67   release     roll tarball and generate patch\n\
68   rpm         build rpm (Red Hat) package\n\
69   rpm-mdk     build rpm (Mandrake) packages\n\
70   po          make new translation Portable Object database\n\
71   po-replace  do po-update and replace catalogs with msgmerged versions\n\
72   po-update   update translation Portable Object database\n\
73   web         update website in out-www\n\
74   web-doc     generate documentation website\n\
75   web-clean   clean out-www\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 #