1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 01:03:01 +00:00
transmission/macosx/Makefile.am
Mitchell Livingston 844341faef this better work
2007-09-16 01:02:06 +00:00

42 lines
1 KiB
Makefile

EXTRA_DIST = \
Sparkle.framework \
CTGradient \
UKKQueue \
TransmissionHelp \
Applescript \
Images \
Growl.framework \
English.lproj \
Spanish.lproj \
Italian.lproj \
Russian.lproj \
Greek.lproj \
Korean.lproj
# Use Xcode do make the actual build
all:
@(cd .. && xcodebuild -alltargets -activeconfiguration | grep -v "^$$")
clean:
@(cd .. && xcodebuild -alltargets -activeconfiguration clean | grep -v "^$$")
define PACKAGE_RULE1
$(RM) tmp "Transmission $(VERSION_PACKAGE)" \
Transmission-$(VERSION_PACKAGE).dmg
mkdir -p tmp
cp -R macosx/Transmission.app tmp/
endef
define PACKAGE_RULE2
mv tmp "Transmission $(VERSION_PACKAGE)"
hdiutil create -format UDZO -imagekey zlib-level=9 -srcfolder \
"Transmission $(VERSION_PACKAGE)" Transmission-$(VERSION_PACKAGE).dmg
rm -rf "Transmission $(VERSION_PACKAGE)"
endef
package:
$(PACKAGE_RULE1)
$(PACKAGE_RULE2)
package-release:
$(PACKAGE_RULE1)
strip -S tmp/Transmission.app/Contents/MacOS/Transmission
$(PACKAGE_RULE2)