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