2005-04-19 20:53:42 +00:00
|
|
|
# Oolite-linux
|
|
|
|
# GNUmakefile.postamble: Runs after-compilation scripts.
|
|
|
|
# These copy all the base data files into where oolite expects them
|
|
|
|
# to live (Contents/Resources)
|
|
|
|
#
|
2006-03-10 21:57:57 +00:00
|
|
|
ifeq ($(debug),yes)
|
|
|
|
EXTENSION=debug
|
|
|
|
else
|
|
|
|
EXTENSION=app
|
|
|
|
endif
|
2006-04-01 18:57:39 +00:00
|
|
|
|
|
|
|
ifeq ($(GNUSTEP_HOST_OS),mingw32)
|
2008-06-06 13:49:45 +00:00
|
|
|
BINARY=$(OBJC_PROGRAM_NAME).exe
|
2006-04-01 18:57:39 +00:00
|
|
|
else
|
2008-06-06 13:49:45 +00:00
|
|
|
BINARY=$(OBJC_PROGRAM_NAME)
|
2006-04-01 18:57:39 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
PROGDIR=$(OBJC_PROGRAM_NAME).$(EXTENSION)
|
|
|
|
GNUSTEP_OW=$(OBJC_PROGRAM_NAME).$(EXTENSION)/Resources/Info-gnustep.plist
|
2005-04-20 19:55:51 +00:00
|
|
|
|
2005-04-19 20:53:42 +00:00
|
|
|
after-all::
|
2007-03-28 02:16:03 +00:00
|
|
|
rm -rf $(PROGDIR)
|
2006-04-01 18:57:39 +00:00
|
|
|
$(MKDIRS) $(PROGDIR)
|
|
|
|
$(MKDIRS) $(PROGDIR)/Resources
|
2007-03-28 02:16:03 +00:00
|
|
|
$(CP) -r Resources $(PROGDIR)
|
2007-07-29 14:17:30 +00:00
|
|
|
$(CP) -r Schemata $(PROGDIR)/Resources
|
2006-03-05 16:26:25 +00:00
|
|
|
$(CP) src/Cocoa/Info-Oolite.plist $(GNUSTEP_OW)
|
2008-06-06 13:49:45 +00:00
|
|
|
if test -d obj; then \
|
|
|
|
$(CP) obj/$(BINARY) $(PROGDIR); \
|
|
|
|
else \
|
|
|
|
if test -d shared_debug_obj; then \
|
|
|
|
$(CP) shared_debug_obj/$(BINARY) $(PROGDIR); \
|
|
|
|
else \
|
|
|
|
$(CP) shared_obj/$(BINARY) $(PROGDIR); \
|
|
|
|
fi; \
|
|
|
|
fi;
|