2006-03-07 20:23:40 +00:00
|
|
|
include Makefile.config
|
|
|
|
include Makefile.common
|
|
|
|
|
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"
|
|
|
|
@$(MAKE) -C libtransmission $(MAKESHUTUP)
|
|
|
|
|
|
|
|
.cli: .lib
|
|
|
|
@echo "* Building Transmission CLI client"
|
|
|
|
@$(MAKE) -C cli $(MAKESHUTUP)
|
|
|
|
|
|
|
|
.gtk: .lib
|
|
|
|
@echo "* Building Transmission GTK+ client"
|
|
|
|
@$(MAKE) -C gtk $(MAKESHUTUP)
|
|
|
|
|
|
|
|
.beos: .lib
|
|
|
|
@echo "* Building Transmission BeOS client"
|
|
|
|
@make -C beos $(MAKESHUTUP)
|
2006-03-07 20:23:40 +00:00
|
|
|
|
|
|
|
clean:
|
2006-04-04 20:23:19 +00:00
|
|
|
@$(MAKE) -C libtransmission clean $(MAKESHUTUP)
|
|
|
|
@$(MAKE) -C cli clean $(MAKESHUTUP)
|
2006-04-03 19:29:09 +00:00
|
|
|
ifeq ($(GTK),yes)
|
2006-04-04 20:23:19 +00:00
|
|
|
@$(MAKE) -C gtk clean $(MAKESHUTUP)
|
2006-04-03 19:29:09 +00:00
|
|
|
endif
|
|
|
|
ifeq ($(SYSTEM),BeOS)
|
2006-04-04 20:23:19 +00:00
|
|
|
@$(MAKE) -C beos clean $(MAKESHUTUP)
|
2006-03-07 20:23:40 +00:00
|
|
|
endif
|
|
|
|
|
2006-04-03 19:29:09 +00:00
|
|
|
else
|
|
|
|
|
|
|
|
all:
|
2006-04-04 20:23:19 +00:00
|
|
|
$(MAKE) -C macosx
|
2006-04-03 19:29:09 +00:00
|
|
|
xcodebuild -alltargets -activeconfiguration | grep -v "^$$"
|
|
|
|
|
|
|
|
clean:
|
|
|
|
xcodebuild -alltargets -activeconfiguration clean | grep -v "^$$"
|
2006-04-04 20:23:19 +00:00
|
|
|
$(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
|