summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-07-20 12:09:42 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-07-20 12:09:42 (GMT)
commit1b73d4228fc3269284427ed574b9f35775315488 (patch)
treee70bd2e70c75ae1b8282ce320d830284156cd5a7 /Slimber/Cocoa/Makefile.inc
parent6c181e11f30cfb58688f327326a03f268ee3790a (diff)
downloadswift-contrib-1b73d4228fc3269284427ed574b9f35775315488.zip
swift-contrib-1b73d4228fc3269284427ed574b9f35775315488.tar.bz2
Use icon in menulet.
Diffstat (limited to 'Slimber/Cocoa/Makefile.inc')
-rw-r--r--Slimber/Cocoa/Makefile.inc17
1 files changed, 11 insertions, 6 deletions
diff --git a/Slimber/Cocoa/Makefile.inc b/Slimber/Cocoa/Makefile.inc
index e457b7a..d07e0d7 100644
--- a/Slimber/Cocoa/Makefile.inc
+++ b/Slimber/Cocoa/Makefile.inc
@@ -6,6 +6,9 @@ SLIMBER_COCOA_SOURCES = \
Slimber/Cocoa/Menulet.m
SLIMBER_COCOA_XIBS = \
Slimber/Cocoa/MainMenu.xib
+SLIMBER_COCOA_RESOURCES = \
+ Slimber/Resources/Online.png \
+ Slimber/Resources/Offline.png
SLIMBER_COCOA_NIBS = \
$(SLIMBER_COCOA_XIBS:.xib=.nib)
@@ -24,12 +27,14 @@ DEPS += \
slimber-cocoa: $(SLIMBER_COCOA_TARGET)
$(SLIMBER_COCOA_TARGET): $(SLIMBER_COCOA_BINARY) $(SLIMBER_COCOA_NIBS) Slimber/Cocoa/Info.plist Slimber/Cocoa/PkgInfo
- mkdir -p $(SLIMBER_COCOA_TARGET)/Resources
- mkdir -p $(SLIMBER_COCOA_TARGET)/MacOS
- cp -r Slimber/Cocoa/Info.plist $(SLIMBER_COCOA_TARGET)
- cp -r Slimber/Cocoa/PkgInfo $(SLIMBER_COCOA_TARGET)
- cp $(SLIMBER_COCOA_BINARY) $(SLIMBER_COCOA_TARGET)/MacOS
- cp $(SLIMBER_COCOA_NIBS) $(SLIMBER_COCOA_TARGET)/Resources
+ -rm -rf $(SLIMBER_COCOA_TARGET)
+ mkdir -p $(SLIMBER_COCOA_TARGET)/Contents/Resources
+ mkdir -p $(SLIMBER_COCOA_TARGET)/Contents/MacOS
+ cp -r Slimber/Cocoa/Info.plist $(SLIMBER_COCOA_TARGET)/Contents
+ cp -r Slimber/Cocoa/PkgInfo $(SLIMBER_COCOA_TARGET)/Contents
+ cp $(SLIMBER_COCOA_BINARY) $(SLIMBER_COCOA_TARGET)/Contents/MacOS
+ cp $(SLIMBER_COCOA_NIBS) $(SLIMBER_COCOA_TARGET)/Contents/Resources
+ cp $(SLIMBER_COCOA_RESOURCES) $(SLIMBER_COCOA_TARGET)/Contents/Resources
$(SLIMBER_COCOA_BINARY): $(SLIMBER_COCOA_OBJECTS)
$(QUIET_LINK)$(CXX) -o $@ $(SLIMBER_COCOA_OBJECTS) $(LDFLAGS) $(SWIFTEN_TARGET) $(LIBS) -framework Cocoa