mirror of
https://github.com/transmission/transmission
synced 2024-12-25 09:13:06 +00:00
71 lines
1.7 KiB
Makefile
71 lines
1.7 KiB
Makefile
# $Id$
|
|
|
|
include mk/config.mk
|
|
include mk/common.mk
|
|
|
|
TARGETS = .cli
|
|
ifeq ($(GTK),yes)
|
|
TARGETS += .gtk
|
|
endif
|
|
ifeq ($(DAEMON),yes)
|
|
TARGETS += .daemon
|
|
endif
|
|
ifeq ($(SYSTEM),BeOS)
|
|
TARGETS += .beos
|
|
endif
|
|
|
|
all: $(TARGETS)
|
|
|
|
.lib:
|
|
@echo "* Building libtransmission"
|
|
@$(MAKE) $(MAKEARGS) -C libtransmission -f ../mk/lib.mk
|
|
|
|
.cli: .lib
|
|
@echo "* Building Transmission CLI client"
|
|
@$(MAKE) $(MAKEARGS) -C cli -f ../mk/cli.mk
|
|
|
|
.gtk: .lib
|
|
@echo "* Building Transmission GTK+ client"
|
|
@$(MAKE) $(MAKEARGS) -C gtk -f ../mk/gtk.mk
|
|
|
|
.daemon: .lib
|
|
@echo "* Building Transmission daemon client"
|
|
@$(MAKE) $(MAKEARGS) -C daemon -f ../mk/daemon.mk
|
|
|
|
.beos: .lib
|
|
@echo "* Building Transmission BeOS client"
|
|
@$(MAKE) $(MAKEARGS) -C beos -f ../mk/beos.mk
|
|
|
|
install: all $(foreach SUB,$(TARGETS),.install$(SUB)) .install.misc
|
|
|
|
.install.cli: .cli
|
|
@echo "* Installing Transmission CLI client"
|
|
@$(MAKE) $(MAKEARGS) -C cli -f ../mk/cli.mk install
|
|
|
|
.install.gtk: .gtk
|
|
@echo "* Installing Transmission GTK+ client"
|
|
@$(MAKE) $(MAKEARGS) -C gtk -f ../mk/gtk.mk install
|
|
|
|
.install.daemon: .daemon
|
|
@echo "* Installing Transmission daemon client"
|
|
@$(MAKE) $(MAKEARGS) -C daemon -f ../mk/daemon.mk install
|
|
|
|
.install.beos:
|
|
|
|
.install.misc:
|
|
@echo "* Installing Zsh completion file"
|
|
@$(MKDIR) $(DESTDIR)$(PREFIX)/share/zsh/site-functions
|
|
@$(CP) misc/transmissioncli.zsh $(DESTDIR)$(PREFIX)/share/zsh/site-functions/_transmissioncli
|
|
|
|
clean:
|
|
@$(MAKE) $(MAKEARGS) -C libtransmission -f ../mk/lib.mk clean
|
|
@$(MAKE) $(MAKEARGS) -C cli -f ../mk/cli.mk clean
|
|
ifeq ($(GTK),yes)
|
|
@$(MAKE) $(MAKEARGS) -C gtk -f ../mk/gtk.mk clean
|
|
endif
|
|
ifeq ($(DAEMON),yes)
|
|
@$(MAKE) $(MAKEARGS) -C daemon -f ../mk/daemon.mk clean
|
|
endif
|
|
ifeq ($(SYSTEM),BeOS)
|
|
@$(MAKE) $(MAKEARGS) -C beos -f ../mk/beos.mk clean
|
|
endif
|