2006-04-05 09:58:35 +00:00
|
|
|
-include Makefile.config
|
2006-03-07 20:23:40 +00:00
|
|
|
include Makefile.common
|
|
|
|
|
2006-04-05 09:58:35 +00:00
|
|
|
ifndef CONFIGURE_RUN
|
|
|
|
$(error You must run ./configure first)
|
|
|
|
endif
|
|
|
|
|
2006-04-03 19:29:09 +00:00
|
|
|
ifneq ($(SYSTEM),Darwin)
|
|
|
|
|
2006-04-04 20:23:19 +00:00
|
|
|
TARGETS = .cli
|
2006-04-03 19:29:09 +00:00
|
|
|
ifeq ($(GTK),yes)
|
2006-04-04 20:23:19 +00:00
|
|
|
TARGETS += .gtk
|
2006-04-03 19:29:09 +00:00
|
|
|
endif
|
|
|
|
ifeq ($(SYSTEM),BeOS)
|
2006-04-04 20:23:19 +00:00
|
|
|
TARGETS += .beos
|
2006-04-03 19:29:09 +00:00
|
|
|
endif
|
2006-03-07 20:23:40 +00:00
|
|
|
|
2006-04-04 20:23:19 +00:00
|
|
|
all: $(TARGETS)
|
|
|
|
|
|
|
|
.lib:
|
|
|
|
@echo "* Building libtransmission"
|
2006-04-05 09:14:40 +00:00
|
|
|
@$(MAKE) -C libtransmission
|
2006-04-04 20:23:19 +00:00
|
|
|
|
|
|
|
.cli: .lib
|
|
|
|
@echo "* Building Transmission CLI client"
|
2006-04-05 09:14:40 +00:00
|
|
|
@$(MAKE) -C cli
|
2006-04-04 20:23:19 +00:00
|
|
|
|
|
|
|
.gtk: .lib
|
|
|
|
@echo "* Building Transmission GTK+ client"
|
2006-04-05 09:14:40 +00:00
|
|
|
@$(MAKE) -C gtk
|
2006-04-04 20:23:19 +00:00
|
|
|
|
|
|
|
.beos: .lib
|
|
|
|
@echo "* Building Transmission BeOS client"
|
2006-04-05 09:14:40 +00:00
|
|
|
@make -C beos
|
2006-03-07 20:23:40 +00:00
|
|
|
|
|
|
|
clean:
|
2006-04-05 09:14:40 +00:00
|
|
|
@$(MAKE) -C libtransmission clean
|
|
|
|
@$(MAKE) -C cli clean
|
2006-04-03 19:29:09 +00:00
|
|
|
ifeq ($(GTK),yes)
|
2006-04-05 09:14:40 +00:00
|
|
|
@$(MAKE) -C gtk clean
|
2006-04-03 19:29:09 +00:00
|
|
|
endif
|
|
|
|
ifeq ($(SYSTEM),BeOS)
|
2006-04-05 09:14:40 +00:00
|
|
|
@$(MAKE) -C beos clean
|
2006-03-07 20:23:40 +00:00
|
|
|
endif
|
|
|
|
|
2006-04-03 19:29:09 +00:00
|
|
|
else
|
|
|
|
|
|
|
|
all:
|
2006-04-05 09:14:40 +00:00
|
|
|
@$(MAKE) -C macosx
|
|
|
|
@xcodebuild -alltargets -activeconfiguration | grep -v "^$$"
|
2006-04-03 19:29:09 +00:00
|
|
|
|
|
|
|
clean:
|
2006-04-05 09:14:40 +00:00
|
|
|
@xcodebuild -alltargets -activeconfiguration clean | grep -v "^$$"
|
|
|
|
@$(MAKE) -C macosx clean
|
2006-04-03 19:29:09 +00:00
|
|
|
|
2006-04-09 14:02:54 +00:00
|
|
|
MAKELINK = printf "[InternetShortcut]\nURL=http://transmission.m0k.org%s\n"
|
|
|
|
define PACKAGE_RULE1
|
|
|
|
$(RM) tmp "Transmission $(VERSION_STRING)" \
|
|
|
|
Transmission-$(VERSION_STRING).dmg
|
|
|
|
mkdir -p tmp
|
|
|
|
cp -r macosx/Transmission.app tmp/
|
|
|
|
cp AUTHORS tmp/AUTHORS.txt
|
|
|
|
cp LICENSE tmp/LICENSE.txt
|
|
|
|
cp NEWS tmp/NEWS.txt
|
|
|
|
$(MAKELINK) "/" > tmp/Homepage.url
|
|
|
|
$(MAKELINK) "/forum" > tmp/Forums.url
|
|
|
|
$(MAKELINK) "/contribute.php" > tmp/Contribute.url
|
|
|
|
endef
|
|
|
|
define PACKAGE_RULE2
|
|
|
|
mv tmp "Transmission $(VERSION_STRING)"
|
|
|
|
hdiutil create -format UDZO -srcfolder \
|
|
|
|
"Transmission $(VERSION_STRING)" Transmission-$(VERSION_STRING).dmg
|
|
|
|
rm -rf "Transmission $(VERSION_STRING)"
|
|
|
|
endef
|
2006-04-03 19:29:09 +00:00
|
|
|
|
|
|
|
package:
|
2006-04-09 14:02:54 +00:00
|
|
|
$(PACKAGE_RULE1)
|
|
|
|
$(PACKAGE_RULE2)
|
|
|
|
|
|
|
|
package-release:
|
|
|
|
$(PACKAGE_RULE1)
|
|
|
|
strip -S tmp/Transmission.app/Contents/MacOS/Transmission
|
|
|
|
$(PACKAGE_RULE2)
|
2006-04-03 19:29:09 +00:00
|
|
|
|
|
|
|
endif
|