summaryrefslogtreecommitdiffstats
path: root/tdeioslave/fish/Makefile.am
blob: e060da76faf4a6c80272a68e6d305a41f4791d63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
kde_module_LTLIBRARIES = tdeio_fish.la

INCLUDES = $(all_includes)
AM_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_KIO) -ltdetexteditor

tdeio_fish_la_SOURCES = fish.cpp
tdeio_fish_la_LIBADD = $(LIB_KSYCOCA) $(LIBUTIL) 
tdeio_fish_la_LDFLAGS = $(all_libraries) -module $(KDE_PLUGIN) -lutil
noinst_HEADERS = fishcode.h fish.h

EXTRA_DIST = AUTHORS COPYING ChangeLog INSTALL README TODO FAQ fish.pl

DISTCLEANFILES = fishcode.h

kdelnk_DATA = fish.protocol nxfish.protocol
kdelnkdir = $(kde_servicesdir)

METASOURCES = AUTO

fish.lo: fishcode.h

fishcode.h: fish.pl
	SUM=`$(MD5SUM) $(srcdir)/fish.pl | cut -d ' ' $(MD5SUM_CUT)`; \
	echo '#define CHECKSUM "'$$SUM'"' > $@; \
	echo 'static const char *fishCode(' >> $@; \
	sed -e 's/\\/\\\\/g;s/"/\\"/g;s/^[ 	]*/"/;/^"# /d;s/[ 	]*$$/\\n"/;/^"\\n"$$/d;s/{CHECKSUM}/'$$SUM'/;' $(srcdir)/fish.pl >> $@; \
	echo ');' >> $@;

messages:
	$(XGETTEXT) *.cpp -o $(podir)/tdeio_fish.pot