oolite/GNUmakefile.postamble
Dylan Smith 3594399b40 Begone, AppKit
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@402 127b21dd-08f5-0310-b4b7-95ae10353056
2006-04-01 18:57:39 +00:00

33 lines
850 B
Plaintext

# Oolite-linux
# GNUmakefile.postamble: Runs after-compilation scripts.
# These copy all the base data files into where oolite expects them
# to live (Contents/Resources)
#
ifeq ($(debug),yes)
EXTENSION=debug
SHAREDOBJ=shared_debug_obj
else
EXTENSION=app
SHAREDOBJ=shared_obj
endif
ifeq ($(GNUSTEP_HOST_OS),mingw32)
BINARY=$(SHAREDOBJ)/$(OBJC_PROGRAM_NAME).exe
else
BINARY=$(SHAREDOBJ)/$(OBJC_PROGRAM_NAME)
endif
CONTENTS = Contents
PROGDIR=$(OBJC_PROGRAM_NAME).$(EXTENSION)
CONTENTDIR=$(OBJC_PROGRAM_NAME).$(EXTENSION)/$(CONTENTS)
GNUSTEP_OW=$(OBJC_PROGRAM_NAME).$(EXTENSION)/Resources/Info-gnustep.plist
after-all::
rm -rf $(CONTENTDIR)
$(MKDIRS) $(PROGDIR)
$(MKDIRS) $(PROGDIR)/Resources
$(MKDIRS) $(CONTENTDIR)
$(CP) -r Resources $(CONTENTDIR)/Resources
$(CP) src/Cocoa/Info-Oolite.plist $(GNUSTEP_OW)
$(CP) $(BINARY) $(PROGDIR)