mirror of
https://github.com/transmission/transmission
synced 2024-12-24 00:34:04 +00:00
fde1bf8876
other interfaces.
71 lines
1.7 KiB
Makefile
71 lines
1.7 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 $(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)
|
|
|
|
clean:
|
|
@$(MAKE) -C libtransmission clean $(MAKESHUTUP)
|
|
@$(MAKE) -C cli clean $(MAKESHUTUP)
|
|
ifeq ($(GTK),yes)
|
|
@$(MAKE) -C gtk clean $(MAKESHUTUP)
|
|
endif
|
|
ifeq ($(SYSTEM),BeOS)
|
|
@$(MAKE) -C beos clean $(MAKESHUTUP)
|
|
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
|