]> gitweb.factorcode.org Git - factor.git/commitdiff
Makefile now builds a Factor.app
authorslava <slava@factorcode.org>
Wed, 15 Mar 2006 02:08:15 +0000 (02:08 +0000)
committerslava <slava@factorcode.org>
Wed, 15 Mar 2006 02:08:15 +0000 (02:08 +0000)
Factor.app/Contents/Info.plist [new file with mode: 0644]
Factor.app/Contents/PkgInfo [new file with mode: 0644]
Makefile

diff --git a/Factor.app/Contents/Info.plist b/Factor.app/Contents/Info.plist
new file mode 100644 (file)
index 0000000..b683a88
--- /dev/null
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+       <key>CFBundleExecutable</key>
+       <string>Factor</string>
+       <key>CFBundleIdentifier</key>
+       <string>org.factorcode.Factor</string>
+       <key>CFBundleInfoDictionaryVersion</key>
+       <string>6.0</string>
+       <key>CFBundleName</key>
+       <string>Factor</string>
+       <key>CFBundlePackageType</key>
+       <string>APPL</string>
+</dict>
+</plist>
diff --git a/Factor.app/Contents/PkgInfo b/Factor.app/Contents/PkgInfo
new file mode 100644 (file)
index 0000000..e69de29
index ba70a64a73524371b549231aebeaee45110cabb6..3456087bea6bee54e79db63b676125ae6b3f76a1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,9 @@
 CC = gcc
+CP = cp
 
 BINARY = f
+BUNDLE = Factor.app
+BUNDLE_BINARY = $(BUNDLE)/Contents/MacOS/Factor
 
 ifdef DEBUG
        DEFAULT_CFLAGS = -g
@@ -89,6 +92,7 @@ macosx:
                CFLAGS="$(DEFAULT_CFLAGS)" \
                LIBS="$(DEFAULT_LIBS) -framework Cocoa -framework OpenGL" \
                MACOSX=y
+       $(CP) $(BINARY) $(BUNDLE_BINARY)
 
 linux linux-x86 linux-amd64:
        $(MAKE) $(BINARY) \