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
|
|
|
|
|
|
|
MAKELINK = printf "[InternetShortcut]\nURL=http://%s\n"
|
|
|
|
|
|
|
|
package:
|
|
|
|
$(RM) tmp "Transmission $(VERSION_STRING)" \
|
|
|
|
Transmission-$(VERSION_STRING).dmg && \
|
|
|
|
mkdir -p tmp && \
|
2006-04-04 20:23:19 +00:00
|
|
|
cp -r macosx/Transmission.app tmp/ && \
|
2006-04-03 19:29:09 +00:00
|
|
|
cp AUTHORS tmp/AUTHORS.txt && \
|
|
|
|
cp LICENSE tmp/LICENSE.txt && \
|
|
|
|
cp NEWS tmp/NEWS.txt && \
|
|
|
|
strip -S tmp/Transmission.app/Contents/MacOS/Transmission && \
|
|
|
|
$(MAKELINK) "transmission.m0k.org/" > tmp/Homepage.url && \
|
|
|
|
$(MAKELINK) "transmission.m0k.org/forum" > tmp/Forums.url && \
|
|
|
|
$(MAKELINK) "transmission.m0k.org/contribute.php" > tmp/Contribute.url && \
|
|
|
|
mv tmp "Transmission $(VERSION_STRING)" && \
|
|
|
|
hdiutil create -format UDZO -srcfolder \
|
|
|
|
"Transmission $(VERSION_STRING)" Transmission-$(VERSION_STRING).dmg && \
|
|
|
|
rm -rf "Transmission $(VERSION_STRING)"
|
|
|
|
|
|
|
|
endif
|