diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2005-11-17 00:06:46 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2005-11-17 00:06:46 +0000 |
commit | 44ec3d0160d854fe1ed6f0c955135009efbba917 (patch) | |
tree | 9f9edcc629ffb5492f35e504305ad0d436860292 /packages/Makefile | |
parent | d351824253b1af0a53f9a628ee4a9628ab9720a2 (diff) |
abstractions and externals/build/doc are now working as part of the centralized build system; also added is a way to specify Makefile.biuldlayout from the main Makefile, so then it doesn't realy matter if the other copies of Makefile.buildlayout get out of sync
svn path=/trunk/; revision=3952
Diffstat (limited to 'packages/Makefile')
-rw-r--r-- | packages/Makefile | 43 |
1 files changed, 29 insertions, 14 deletions
diff --git a/packages/Makefile b/packages/Makefile index 267a39bb..4b7db638 100644 --- a/packages/Makefile +++ b/packages/Makefile @@ -1,21 +1,36 @@ +#==============================================================================# # +# Centralized cross-platform build system # +# see README for instructions <hans@at.or.at> # +#==============================================================================# -# these are setup to be overridden by the packages/*/Makefiles -SRC_ROOT_DIR := $(shell pwd)/.. -INSTALL_PREFIX = $(SRC_ROOT_DIR)/packages/build +CWD := $(shell pwd) -# default target -all: abstractions +SRC_ROOT_DIR = $(CWD)/.. +INSTALL_PREFIX = $(SRC_ROOT_DIR)/packages/build +BUILDLAYOUT_DIR = $(CWD) -include Makefile.buildlayout +# get the platform +UNAME := $(shell uname) -DST_PATHS = APPLICATIONS_DEST=$(APPLICATIONS_DEST) \ - DOCS_DEST=$(DOCS_DEST) \ - HELP_DEST=$(HELP_DEST) \ - MANUALS_DEST=$(MANUALS_DEST) \ - OBJECTS_DEST=$(OBJECTS_DEST) +# default target +all: abstractions doc externals gem pd + echo "Complete build succeeded!" + +include $(BUILDLAYOUT_DIR)/Makefile.buildlayout + +# these are sent to all of the various Makefiles so that they all copy their +# output to the same directory tree +DEST_PATHS = BUILDLAYOUT_DIR=$(BUILDLAYOUT_DIR) \ + SRC_ROOT_DIR=$(SRC_ROOT_DIR) \ + INSTALL_PREFIX=$(INSTALL_PREFIX) +# APPLICATIONS_DEST=$(APPLICATIONS_DEST) \ +# DOCS_DEST=$(DOCS_DEST) \ +# HELP_DEST=$(HELP_DEST) \ +# MANUALS_DEST=$(MANUALS_DEST) \ +# OBJECTS_DEST=$(OBJECTS_DEST) #==============================================================================# # @@ -26,7 +41,7 @@ DST_PATHS = APPLICATIONS_DEST=$(APPLICATIONS_DEST) \ #------------------------------------------------------------------------------ # abstractions abstractions: - make -f $(ABSTRACTIONS_SRC)/Makefile $(DST_PATHS) install + make -f $(ABSTRACTIONS_SRC)/Makefile $(DEST_PATHS) install #------------------------------------------------------------------------------ # doc @@ -37,7 +52,7 @@ doc: # externals externals: # doc - make -f $(EXTERNALS_SRC)/build/doc/makefile $(DST_PATHS) install + make -f $(EXTERNALS_SRC)/build/doc/makefile $(DEST_PATHS) install #------------------------------------------------------------------------------ @@ -54,7 +69,7 @@ pd: # CLEAN TARGETS #==============================================================================# abstractions_clean: - make -f $(ABSTRACTIONS_SRC)/Makefile $(DST_PATHS) clean + make -f $(ABSTRACTIONS_SRC)/Makefile $(DEST_PATHS) clean clean: abstractions_clean -rm -f *~ |