]> git.donarmstrong.com Git - lilypond.git/blob - stepmake/stepmake/generic-vars.make
7b457f3c5a838ec94d8aa0775ada4a97c84dab85
[lilypond.git] / stepmake / stepmake / generic-vars.make
1 # directory names:
2
3 # depth from group-dir
4 # internal, not normally used
5 DEPTH = $(depth)/$(package-depth)
6
7 ifeq ($(topdir),)
8 abs-srcdir := $(shell cd $(depth); pwd)
9 #deprecated
10 topdir := $(abs-srcdir)
11 endif
12 pwd := $(shell pwd)
13
14 # $(depth) is deprecated, for most cases you'll want $(src-depth)
15 #
16 # Well, on second thought.
17 # It can do no harm, but using src-depth iso depth is only necessary
18 # for broken rules that do
19 #    cd $(outdir) && foo  $(depth) ...
20 src-depth = $(depth)/$(srcdir)
21
22 # derived names
23 ifeq ($(distdir),)
24   distdir = $(topdir)/$(outdir)/$(DIST_NAME)
25   DIST_NAME = $(package)-$(TOPLEVEL_VERSION)
26 endif
27 distname = $(package)-$(TOPLEVEL_VERSION)
28
29 # obsolete?
30 #makeout = $(depth)/make/$(outdir)
31 #docout = $(depth)/Documentation/$(outdir)
32 #binout = $(depth)/bin/$(outdir)
33
34 doc-dir = $(src-depth)/Documentation
35 po-dir = $(src-depth)/po
36
37 # sort-out which of these are still needed
38 #
39 $(package)_bindir = $(depth)/bin
40 step-bindir = $(stepmake)/bin
41
42 group-dir = $(shell cd $(DEPTH)/..; pwd)
43 release-dir = $(group-dir)/releases
44 patch-dir = $(group-dir)/patches
45 #
46 # i have in $HOME/.rpmrc
47 #     topdir: /home/fred/usr/src/Redhat
48 #
49 rpm-sources = $(release-dir)
50 rpm-build = $(group-dir)/RedHat/BUILD
51 #
52
53 # package-icon=$(outdir)/$(package)-icon.gif
54 package-icon=$(outdir)/$(package)-icon.xpm
55
56
57 # need to be defined in local Makefiles:
58 #
59 FOOBAR = 
60 # the version:
61 #
62 ifneq ($(MY_PATCH_LEVEL),$(FOOBAR))
63 VERSION=$(MAJOR_VERSION).$(MINOR_VERSION).$(PATCH_LEVEL).$(MY_PATCH_LEVEL)
64 else
65 VERSION=$(MAJOR_VERSION).$(MINOR_VERSION).$(PATCH_LEVEL)
66 endif
67
68 ifneq ($(TOPLEVEL_MY_PATCH_LEVEL),$(FOOBAR))
69 TOPLEVEL_VERSION=$(TOPLEVEL_MAJOR_VERSION).$(TOPLEVEL_MINOR_VERSION).$(TOPLEVEL_PATCH_LEVEL).$(TOPLEVEL_MY_PATCH_LEVEL)
70 else
71 TOPLEVEL_VERSION=$(TOPLEVEL_MAJOR_VERSION).$(TOPLEVEL_MINOR_VERSION).$(TOPLEVEL_PATCH_LEVEL)
72 endif
73
74
75
76 # clean file lists:
77 #
78 ERROR_LOG = 2> /dev/null
79 SILENT_LOG = 2>&1 >  /dev/null
80 date := $(shell date +%x)       #duplicated?
81
82 INCLUDES = include $(outdir) $($(PACKAGE)_INCLUDES) $(MODULE_INCLUDES)
83
84 M4 = m4
85
86 #replace to do stripping of certain objects
87 STRIPDEBUG=true 
88
89 DIST_FILES=$(EXTRA_DIST_FILES) GNUmakefile $(ALL_SOURCES)
90 DOCDIR=$(depth)/$(outdir)
91
92 STRIP=strip --strip-debug
93
94 # substitute $(STRIP) in Site.make if you want stripping
95 DO_STRIP=true
96 LOOP=$(foreach i,  $(SUBDIRS), $(MAKE) PACKAGE=$(PACKAGE) package=$(package) -C $(i) $@ &&) true
97
98 # different redhat releases need different flags for etags. Just use defaults.
99 ETAGS_FLAGS= # -CT
100 CTAGS_FLAGS=-h
101
102 makeflags=$(patsubst %==, %, $(patsubst ---%,,$(patsubst ----%,,$(MAKEFLAGS:%=--%))))
103
104 DEP_FILES := $(wildcard $(outdir)/*.dep)
105
106 IN_FILES := $(wildcard *.in)
107 SOURCE_FILES += $(IN_FILES)
108
109 # Preprocessed .in documentation _FILES:
110 OUTIN_FILES = $(addprefix $(outdir)/, $(IN_FILES:%.in=%))
111
112 ALL_SOURCES = $(SOURCE_FILES)
113
114