1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 00:34:04 +00:00
transmission/Makefile
2006-04-05 09:14:40 +00:00

71 lines
1.6 KiB
Makefile

include Makefile.config
include Makefile.common
ifneq ($(SYSTEM),Darwin)
TARGETS = .cli
ifeq ($(GTK),yes)
TARGETS += .gtk
endif
ifeq ($(SYSTEM),BeOS)
TARGETS += .beos
endif
all: $(TARGETS)
.lib:
@echo "* Building libtransmission"
@$(MAKE) -C libtransmission
.cli: .lib
@echo "* Building Transmission CLI client"
@$(MAKE) -C cli
.gtk: .lib
@echo "* Building Transmission GTK+ client"
@$(MAKE) -C gtk
.beos: .lib
@echo "* Building Transmission BeOS client"
@make -C beos
clean:
@$(MAKE) -C libtransmission clean
@$(MAKE) -C cli clean
ifeq ($(GTK),yes)
@$(MAKE) -C gtk clean
endif
ifeq ($(SYSTEM),BeOS)
@$(MAKE) -C beos clean
endif
else
all:
@$(MAKE) -C macosx
@xcodebuild -alltargets -activeconfiguration | grep -v "^$$"
clean:
@xcodebuild -alltargets -activeconfiguration clean | grep -v "^$$"
@$(MAKE) -C macosx clean
MAKELINK = printf "[InternetShortcut]\nURL=http://%s\n"
package:
$(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 && \
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