aboutsummaryrefslogtreecommitdiff
path: root/lib/enca/src/Makefile.am
blob: 9fd3d364cdf15edb83e890dea7f02ee60ef554d1 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# @(#) $Id: Makefile.am,v 1.22 2004/07/22 16:18:42 yeti Exp $
bin_PROGRAMS = enca
noinst_SCRIPTS = text2c.sh

enca_SOURCES = \
	COPYING.c \
	HELP.c \
	common.h \
	convert.c \
	convert_extern.c \
	convert_recode.c \
	convert_iconv.c \
	enca.c \
	filebuf.c \
	locale_detect.c \
	options.c

EXTRA_enca_SOURCES = \
	getopt.h

BUILT_SOURCES = \
	COPYING.c \
	HELP.c

EXTRA_DIST = \
	HELP.in \
	text2c.sh

enca_LDADD = @LIBOBJS@ @CONVERTER_LIBS@ ../lib/libenca.la
enca_LDFLAGS = @LDFLAGS@ @LIBS@
enca_DEPENDENCIES = @LIBOBJS@ ../lib/libenca.la
enca_CPPFLAGS = -DEXTCONV_DIR=\"@libexecdir@/enca/extconv\"
INCLUDES = -I$(top_srcdir)/lib

# BUILT_SOURCES.  How we build them:

# For inclusion of GNU General Public License directly into Enca
COPYING.c: $(top_srcdir)/COPYING $(srcdir)/text2c.sh
	$(srcdir)/text2c.sh $(top_srcdir)/COPYING >COPYING.c

HELP.c: HELP $(srcdir)/text2c.sh
	$(srcdir)/text2c.sh HELP >HELP.c

install-exec-hook:
	cd $(DESTDIR)$(bindir); \
	inst1=`echo enca | sed '$(transform)'`; \
	inst2=`echo enconv | sed '$(transform)'`; \
	$(LN_S) $$inst1$(EXEEXT) $$inst2$(EXEEXT)

uninstall-hook:
	inst=`echo enconv | sed '$(transform)'`; \
	rm -f $(DESTDIR)$(bindir)/$$inst$(EXEEXT)

clean-local:
	rm -f core.* *~ HELP.c COPYING.c

dist-hook:
	rm -f $(distdir)/HELP.c $(distdir)/COPYING.c