]> git.donarmstrong.com Git - lilypond.git/blob - stepmake/stepmake/generic-vars.make
* lily/stencil-scheme.cc:
[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
13 ## `which pwd` is to prevent symlink resolving intelligence 
14 pwd:=$(shell `which pwd`)
15 current-relative-dir:=$(subst $(strip $(shell cd $(depth); `which pwd`)),,$(pwd))
16
17 ifeq ($(srcdir),.)
18 src-depth = $(depth)
19 else
20 src-depth = $(srcdir)
21 endif
22
23 ifeq ($(topdir),)
24 abs-srcdir := $(shell cd $(src-depth); pwd)
25 topdir := $(abs-srcdir)
26 endif
27
28 # derived names
29 ifeq ($(distdir),)
30   distdir = $(topdir)/$(outdir)/$(DIST_NAME)
31   DIST_NAME = $(package)-$(TOPLEVEL_VERSION)
32 endif
33 distname = $(package)-$(TOPLEVEL_VERSION)
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 ETAGS_FLAGS =
100 CTAGS_FLAGS = 
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 # Check if we are building for Cygwin
115 #
116 HOST_ARCH=$(shell $(CC) -dumpmachine)
117 ifeq ($(HOST_ARCH),i686-pc-cygwin)
118 CYGWIN_BUILD = yes
119 endif
120 #
121 # ugh-- what if someone decides on: 'i568-pc-cygwin-gnu'
122 ifeq ($(HOST_ARCH),i686-cygwin)
123 CYGWIN_BUILD = yes
124 endif