build the OSX application bundle in $(DIR)/bin

This commit is contained in:
2003-02-02 17:28:15 +00:00
parent 1ee378865f
commit 5146bc6e41

View File

@@ -1,5 +1,5 @@
# #
# $Id: Makefile,v 1.2 2002/10/13 15:57:12 hans Exp $ # $Id: Makefile,v 1.3 2002/11/03 22:38:32 maarten Exp $
# #
# ***** BEGIN GPL/BL DUAL LICENSE BLOCK ***** # ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
# #
@@ -37,13 +37,13 @@ DIR = $(OCGDIR)/$(DEBUG_DIR)
all:: all::
@# set up directory structure for the OSX aplication bundle @# set up directory structure for the OSX aplication bundle
@echo "---> creating directory structure for $(APPLICATION)" @echo "---> creating directory structure for $(APPLICATION)"
@rm -rf $(DIR)/$(APPLICATION).app @rm -rf $(DIR)/bin/$(APPLICATION).app
@cp -R $(APPLICATION).app $(DIR) @cp -R $(APPLICATION).app $(DIR)/bin
@#cat $(APPLICATION).app/Contents/Info.plist | sed s/VERSION/`cat ../../VERSION`/ | sed s/DATE/`date +'%Y-%b-%d'`/ > $(DIR)/$(APPLICATION).app/Contents/Info.plist @#cat $(APPLICATION).app/Contents/Info.plist | sed s/VERSION/`cat ../../VERSION`/ | sed s/DATE/`date +'%Y-%b-%d'`/ > $(DIR)/bin/$(APPLICATION).app/Contents/Info.plist
@echo "---> copying binary" @echo "---> copying binary"
@cp $(DIR)/$(APPLICATION) $(DIR)/$(APPLICATION).app/Contents/MacOS/ @cp $(DIR)/bin/$(APPLICATION) $(DIR)/bin/$(APPLICATION).app/Contents/MacOS/
@echo "---> adding excutable attributes" @echo "---> adding excutable attributes"
@chmod +x $(DIR)/$(APPLICATION).app/Contents/MacOS/$(APPLICATION) @chmod +x $(DIR)/bin/$(APPLICATION).app/Contents/MacOS/$(APPLICATION)
@echo "---> removing CVS directories and Mac hidden files from distribution" @echo "---> removing CVS directories and Mac hidden files from distribution"
@find $(DIR)/$(APPLICATION).app -name CVS -prune -exec rm -rf {} \; @find $(DIR)/bin/$(APPLICATION).app -name CVS -prune -exec rm -rf {} \;
@find $(DIR)/$(APPLICATION).app -name .DS_Store -exec rm -f {} \; @find $(DIR)/bin/$(APPLICATION).app -name .DS_Store -exec rm -f {} \;