transmission/mk/default.mk

72 lines
1.7 KiB
Makefile
Raw Normal View History

2006-07-16 19:39:23 +00:00
# $Id$
include mk/config.mk
include mk/common.mk
TARGETS = .cli
ifeq ($(GTK),yes)
TARGETS += .gtk
endif
2007-04-18 16:39:10 +00:00
ifeq ($(DAEMON),yes)
TARGETS += .daemon
endif
2006-07-16 19:39:23 +00:00
ifeq ($(SYSTEM),BeOS)
TARGETS += .beos
2006-07-16 19:39:23 +00:00
endif
all: $(TARGETS)
.lib:
@echo "* Building libtransmission"
2006-12-14 03:17:23 +00:00
@$(MAKE) $(MAKEARGS) -C libtransmission -f ../mk/lib.mk
2006-07-16 19:39:23 +00:00
.cli: .lib
@echo "* Building Transmission CLI client"
2006-12-14 03:17:23 +00:00
@$(MAKE) $(MAKEARGS) -C cli -f ../mk/cli.mk
2006-07-16 19:39:23 +00:00
.gtk: .lib
@echo "* Building Transmission GTK+ client"
2006-12-14 03:17:23 +00:00
@$(MAKE) $(MAKEARGS) -C gtk -f ../mk/gtk.mk
2006-07-16 19:39:23 +00:00
2007-04-18 16:39:10 +00:00
.daemon: .lib
@echo "* Building Transmission daemon client"
@$(MAKE) $(MAKEARGS) -C daemon -f ../mk/daemon.mk
2006-07-16 19:39:23 +00:00
.beos: .lib
@echo "* Building Transmission BeOS client"
2006-12-14 03:17:23 +00:00
@$(MAKE) $(MAKEARGS) -C beos -f ../mk/beos.mk
2006-07-16 19:39:23 +00:00
install: all $(foreach SUB,$(TARGETS),.install$(SUB)) .install.misc
2006-07-16 19:39:23 +00:00
.install.cli: .cli
@echo "* Installing Transmission CLI client"
2006-12-14 03:17:23 +00:00
@$(MAKE) $(MAKEARGS) -C cli -f ../mk/cli.mk install
2006-07-16 19:39:23 +00:00
.install.gtk: .gtk
@echo "* Installing Transmission GTK+ client"
2006-12-14 03:17:23 +00:00
@$(MAKE) $(MAKEARGS) -C gtk -f ../mk/gtk.mk install
2006-07-16 19:39:23 +00:00
2007-04-18 16:39:10 +00:00
.install.daemon: .daemon
@echo "* Installing Transmission daemon client"
@$(MAKE) $(MAKEARGS) -C daemon -f ../mk/daemon.mk install
2006-07-16 19:39:23 +00:00
.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
2006-07-16 19:39:23 +00:00
clean:
2006-12-14 03:17:23 +00:00
@$(MAKE) $(MAKEARGS) -C libtransmission -f ../mk/lib.mk clean
@$(MAKE) $(MAKEARGS) -C cli -f ../mk/cli.mk clean
2006-07-16 19:39:23 +00:00
ifeq ($(GTK),yes)
2006-12-14 03:17:23 +00:00
@$(MAKE) $(MAKEARGS) -C gtk -f ../mk/gtk.mk clean
2006-07-16 19:39:23 +00:00
endif
2007-04-18 16:39:10 +00:00
ifeq ($(DAEMON),yes)
@$(MAKE) $(MAKEARGS) -C daemon -f ../mk/daemon.mk clean
endif
2006-07-16 19:39:23 +00:00
ifeq ($(SYSTEM),BeOS)
2006-12-14 03:17:23 +00:00
@$(MAKE) $(MAKEARGS) -C beos -f ../mk/beos.mk clean
2006-07-16 19:39:23 +00:00
endif