4 # internal, not normally used
5 DEPTH = $(depth)/$(package-depth)
8 abs-srcdir := $(shell cd $(depth); pwd)
10 topdir := $(abs-srcdir)
22 distdir = $(topdir)/$(outdir)/$(DIST_NAME)
23 DIST_NAME = $(package)-$(TOPLEVEL_VERSION)
25 distname = $(package)-$(TOPLEVEL_VERSION)
27 doc-dir = $(src-depth)/Documentation
28 po-dir = $(src-depth)/po
30 # sort-out which of these are still needed
32 $(package)_bindir = $(depth)/bin
33 step-bindir = $(stepmake)/bin
35 group-dir = $(shell cd $(DEPTH)/..; pwd)
36 release-dir = $(group-dir)/releases
37 patch-dir = $(group-dir)/patches
39 # i have in $HOME/.rpmrc
40 # topdir: /home/fred/usr/src/Redhat
42 rpm-sources = $(release-dir)
43 rpm-build = $(group-dir)/RedHat/BUILD
46 # package-icon=$(outdir)/$(package)-icon.gif
47 package-icon=$(outdir)/$(package)-icon.xpm
50 # need to be defined in local Makefiles:
55 ifneq ($(MY_PATCH_LEVEL),$(FOOBAR))
56 VERSION=$(MAJOR_VERSION).$(MINOR_VERSION).$(PATCH_LEVEL).$(MY_PATCH_LEVEL)
58 VERSION=$(MAJOR_VERSION).$(MINOR_VERSION).$(PATCH_LEVEL)
61 ifneq ($(TOPLEVEL_MY_PATCH_LEVEL),$(FOOBAR))
62 TOPLEVEL_VERSION=$(TOPLEVEL_MAJOR_VERSION).$(TOPLEVEL_MINOR_VERSION).$(TOPLEVEL_PATCH_LEVEL).$(TOPLEVEL_MY_PATCH_LEVEL)
64 TOPLEVEL_VERSION=$(TOPLEVEL_MAJOR_VERSION).$(TOPLEVEL_MINOR_VERSION).$(TOPLEVEL_PATCH_LEVEL)
71 ERROR_LOG = 2> /dev/null
72 SILENT_LOG = 2>&1 > /dev/null
73 date := $(shell date +%x) #duplicated?
75 INCLUDES = include $(outdir) $($(PACKAGE)_INCLUDES) $(MODULE_INCLUDES)
79 #replace to do stripping of certain objects
82 DIST_FILES=$(EXTRA_DIST_FILES) GNUmakefile $(ALL_SOURCES)
83 DOCDIR=$(depth)/$(outdir)
85 STRIP=strip --strip-debug
87 # substitute $(STRIP) in Site.make if you want stripping
89 LOOP=$(foreach i, $(SUBDIRS), $(MAKE) PACKAGE=$(PACKAGE) package=$(package) -C $(i) $@ &&) true
91 # different redhat releases need different flags for etags. Just use defaults.
95 makeflags=$(patsubst %==, %, $(patsubst ---%,,$(patsubst ----%,,$(MAKEFLAGS:%=--%))))
97 DEP_FILES := $(wildcard $(outdir)/*.dep)
99 IN_FILES := $(wildcard *.in)
100 SOURCE_FILES += $(IN_FILES)
102 # Preprocessed .in documentation _FILES:
103 OUTIN_FILES = $(addprefix $(outdir)/, $(IN_FILES:%.in=%))
105 ALL_SOURCES = $(SOURCE_FILES)