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