oolite/GNUmakefile.postamble
Michael Werle ceb2b2e302 * Revamped build system - should make it a lot easier for people to build the sources and create packages
** Use "make -f Makefile help" to see a list of targets
** Updated Windows NSIS Packager rules
** Minor Tweaks to Debian rules

* Updated SpiderMonkey from 1.7 pre-release to 1.7 (minor changes only)
** Supplied new js32.dll for Windows (built with MSVC)

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1857 127b21dd-08f5-0310-b4b7-95ae10353056
2008-11-15 09:54:01 +00:00

34 lines
918 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)
EXT=.dbg
endif
ifeq ($(GNUSTEP_HOST_OS),mingw32)
OS_EXT=.exe
endif
SRC_BIN=$(OBJC_PROGRAM_NAME)$(OS_EXT)
DEST_BIN=$(OBJC_PROGRAM_NAME)$(EXT)$(OS_EXT)
PROGDIR=$(OBJC_PROGRAM_NAME).app
after-all::
$(MKDIRS) $(PROGDIR)
$(MKDIRS) $(PROGDIR)/Resources
$(CP) -r -u -f Resources $(PROGDIR)
$(CP) -r -u -f Schemata $(PROGDIR)/Resources
$(CP) -u -f src/Cocoa/Info-Oolite.plist $(PROGDIR)/Resources/Info-gnustep.plist
$(CP) -u -f $(GNUSTEP_OBJ_DIR_NAME)/$(SRC_BIN) $(PROGDIR)/$(DEST_BIN)
ifeq ($(debug),no)
strip $(PROGDIR)/$(DEST_BIN)
endif
ifeq ($(GNUSTEP_HOST_OS),mingw32)
$(CP) -r -u -f deps/Windows-x86-deps/DLLs/*.dll $(PROGDIR)
endif
after-clean::
rm -rf $(GNUSTEP_OBJ_DIR_NAME)