1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 09:37:56 +00:00
transmission/mk/gtk.mk

54 lines
1.2 KiB
Makefile
Raw Normal View History

2006-07-16 19:39:23 +00:00
# $Id$
include ../mk/config.mk
include ../mk/common.mk
2007-02-19 22:09:05 +00:00
SRCS = conf.c dialogs.c io.c ipc.c main.c msgwin.c tr_backend.c \
tr_cell_renderer_progress.c tr_icon.c tr_prefs.c tr_torrent.c \
tr_window.c util.c
2006-07-16 19:39:23 +00:00
OBJS = $(SRCS:%.c=%.o)
CFLAGS += $(CFLAGS_GTK) -I../libtransmission
LDFLAGS += $(LDFLAGS_GTK)
LDLIBS += ../libtransmission/libtransmission.a
2006-07-16 19:39:23 +00:00
all: transmission-gtk .po
@true
transmission-gtk: $(OBJS) ../libtransmission/libtransmission.a
$(LINK_RULE)
.po:
2006-12-14 03:17:23 +00:00
@$(MAKE) $(MAKEARGS) -C po -f ../../mk/po.mk
2006-07-16 19:39:23 +00:00
%.o: %.c ../mk/config.mk ../mk/common.mk ../mk/gtk.mk
$(CC_RULE)
clean:
@echo "Clean transmission-gtk"
@$(RM) transmission-gtk
@echo "Clean $(OBJS)"
@$(RM) $(OBJS)
2006-12-14 03:17:23 +00:00
@$(MAKE) $(MAKEARGS) -C po -f ../../mk/po.mk clean
2006-07-16 19:39:23 +00:00
.depend: $(SRCS) ../mk/config.mk ../mk/common.mk ../mk/gtk.mk
$(DEP_RULE)
install: transmission-gtk man.install desktop.install icon.install .po
2006-07-16 19:39:23 +00:00
$(INSTALL_BIN_RULE)
2006-12-14 03:17:23 +00:00
@$(MAKE) $(MAKEARGS) -C po -f ../../mk/po.mk install
2006-07-16 19:39:23 +00:00
desktop.install: transmission-gtk.desktop
$(INSTALL_DESKTOP_RULE)
icon.install: transmission.png
$(INSTALL_ICON_RULE)
man.install: transmission-gtk.1
$(INSTALL_MAN_RULE)
2006-07-16 19:39:23 +00:00
morepot: $(SRCS)
xgettext --output=po/transmission-gtk.pot --from-code=UTF-8 --add-comments --keyword=_ --keyword=N_ $^
-include .depend