#! gmake ## AbiSource Applications ## Copyright (C) 1998 AbiSource, Inc. ## ## This program is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License ## as published by the Free Software Foundation; either version 2 ## of the License, or (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program; if not, write to the Free Software ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA ## 02111-1307, USA. ABI_ROOT :=$(shell pwd) prefix :=/usr/local ################################################################## ## Useful options: ## ## make [OUT=] ## [DIST=] ## [ABI_BUILD_VERSION=x.y.z] ## [ABI_BUILD_ID=] default: compile ################################################################## ## Compile all applications in AbiSuite ## This creates $(OUT)/bin/ compile: @echo Building AbiSuite with [ABI_ROOT=$(ABI_ROOT)] $(MAKE) ABI_ROOT=$(ABI_ROOT) -C src ################################################################## ## Generates documentation from the sources ## This creates docs/dox/html/ dox: @echo Generating documentation $(MAKE) ABI_ROOT=$(ABI_ROOT) -C src dox ################################################################## ## Quick developer install with no packaging install: @echo Installing AbiSuite with [prefix=$(prefix)] $(MAKE) prefix=$(prefix) -C src install ################################################################## install_redhat: @echo Installing AbiSuite for Red Hat Linux systems $(MAKE) -C src install_redhat ################################################################## ## Build system library files (strings, dictionaries, example ## documents, default system profile, etc) in a canonical, ## non-installed layout. (This is the layout we'd like to use ## -- and do use for personal builds. Various systems may want ## a different layout and can use this canonical layout to ## construct the desired layout and installation script.) ## This creates $(OUT)/AbiSuite canonical: @echo Building AbiSuite Canonical Layout $(MAKE) ABI_ROOT=$(ABI_ROOT) -C src canonical ################################################################## ## Target to make binary distribution files ## This creates $(DIST)/ distribution: compile canonical $(MAKE) ABI_ROOT=$(ABI_ROOT) prefix=$(prefix) -C src distribution ################################################################## ## Targets to clean up the mess that we make clean: $(MAKE) ABI_ROOT=$(ABI_ROOT) -C src clean abiclean: $(MAKE) ABI_ROOT=$(ABI_ROOT) -C src abiclean realclean: $(MAKE) ABI_ROOT=$(ABI_ROOT) -C src realclean rm -rf dist