2006-05-29 21:21:23 +00:00
|
|
|
# $Id$
|
|
|
|
|
2006-05-31 12:54:53 +00:00
|
|
|
include mk/common.mk
|
2006-04-04 20:23:19 +00:00
|
|
|
|
2006-05-31 12:54:53 +00:00
|
|
|
default: all
|
2006-04-04 20:23:19 +00:00
|
|
|
|
2006-05-31 12:54:53 +00:00
|
|
|
# Before we do anything else, make sure we have config.mk and an
|
|
|
|
# updated version.mk
|
2006-04-04 20:23:19 +00:00
|
|
|
|
2006-05-31 12:54:53 +00:00
|
|
|
required: mk/config.mk mk/version.mk
|
|
|
|
mk/config.mk:
|
|
|
|
@echo "Please run ./configure first."
|
|
|
|
@false
|
|
|
|
mk/version.mk: FORCE
|
|
|
|
@echo "Checking SVN revision..."
|
|
|
|
@./version.sh
|
|
|
|
FORCE:
|
2006-04-25 08:14:37 +00:00
|
|
|
|
2006-05-31 12:54:53 +00:00
|
|
|
# Now call the Makefile that'll really build
|
|
|
|
# OS X has its special Makefile that wraps to Xcode
|
2006-03-07 20:23:40 +00:00
|
|
|
|
2006-05-31 12:54:53 +00:00
|
|
|
-include mk/config.mk
|
|
|
|
ifneq ($(SYSTEM),Darwin)
|
|
|
|
REALMAKE = $(MAKE) -f mk/default.mk
|
2006-04-03 19:29:09 +00:00
|
|
|
else
|
2006-05-31 12:54:53 +00:00
|
|
|
REALMAKE = $(MAKE) -f mk/osx.mk
|
2006-04-03 19:29:09 +00:00
|
|
|
endif
|
2006-05-29 21:58:22 +00:00
|
|
|
|
2006-05-31 12:54:53 +00:00
|
|
|
all: required
|
|
|
|
@$(REALMAKE) all
|
|
|
|
clean: required
|
|
|
|
@$(REALMAKE) clean
|
|
|
|
install: required
|
|
|
|
@$(REALMAKE) install
|
|
|
|
package: required
|
|
|
|
@$(REALMAKE) package
|
|
|
|
package-release: required
|
|
|
|
@$(REALMAKE) package-release
|