1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 17:17:31 +00:00
transmission/mk/default.mk

58 lines
1.4 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
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
.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
.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
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