File: Makefile

package info (click to toggle)
oolite 1.77.1-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 41,264 kB
  • ctags: 5,362
  • sloc: objc: 132,090; ansic: 10,457; python: 2,225; sh: 1,325; makefile: 332; perl: 259; xml: 125; php: 5
file content (23 lines) | stat: -rw-r--r-- 788 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Conveniently, this here xcconfig file declares the version in a make-compatible format.
OOLITE_VERSION_FILE = ../src/Cocoa/oolite-version.xcconfig
include $(OOLITE_VERSION_FILE)

TARGET = Basic-debug.oxp


$(TARGET): Resources/debugConfig.plist Resources/DebugOXPLocatorBeacon.magic Resources/oolite-debug-console.js requires.plist
	rm -rf $(TARGET)
	mkdir $(TARGET)
	mkdir $(TARGET)/Config
	mkdir $(TARGET)/Scripts
	cp Resources/debugConfig.plist $(TARGET)/Config/
	cp Resources/DebugOXPLocatorBeacon.magic $(TARGET)/
	cp Resources/oolite-debug-console.js $(TARGET)/Scripts/
	cp requires.plist $(TARGET)/
	
requires.plist: $(OOLITE_VERSION_FILE)
	echo "{ version = \"$(OOLITE_VERSION)\"; max_version = \"$(OOLITE_VERSION).99\"; }" > $@

clean:
	rm -rf $(TARGET)
	rm -rf requires.plist