summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 6a75d094daf3f10c07ab9376d1740057cd85e2c0 (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
SUBDIRS = gnulib/lib gnulib/po po .

ACLOCAL_AMFLAGS = -I m4 -I gnulib/m4

noinst_LTLIBRARIES = lib/libdctrl.la

man1_MANS = \
man/grep-dctrl.1 \
man/join-dctrl.1 \
man/sort-dctrl.1 \
man/tbl-dctrl.1

man8_MANS = \
man/sync-available.8

bin_PROGRAMS = \
			   grep-dctrl/grep-dctrl \
			   sort-dctrl/sort-dctrl \
			   tbl-dctrl/tbl-dctrl \
			   join-dctrl/join-dctrl

install-exec-hook:
	cd $(DESTDIR)$(bindir) && \
		for a in $(GREP_ALIASES); do \
		rm -f $$a; $(LN_S) grep-dctrl $$a; \
		done
	cd $(DESTDIR)$(mandir)/man1 && \
		for a in $(GREP_ALIASES); do \
		rm -f $$a.1; $(LN_S) grep-dctrl.1 $$a.1; \
		done
uninstall-local:
	for a in $(GREP_ALIASES); do \
	rm -f $(DESTDIR)$(bindir)/$$a; \
	rm -f $(DESTDIR)$(mandir)/man1/$$a.1; \
	done

sbin_SCRIPTS = sync-available/sync-available

AM_CPPFLAGS = \
-I$(top_srcdir)/lib \
-I$(top_srcdir)/gnulib/lib \
-DSYSCONF=\"$(sysconfdir)\" \
-DLOCALEDIR=\"$(localedir)\"  \
-DMAINTAINER=\"$(PACKAGE_BUGREPORT)\"

AM_CFLAGS = $(WERROR)

grep_dctrl_grep_dctrl_SOURCES = grep-dctrl/grep-dctrl.c
grep_dctrl_grep_dctrl_LDADD = lib/libdctrl.la -Lgnulib/lib/ -lgnu

sort_dctrl_sort_dctrl_SOURCES = sort-dctrl/sort-dctrl.c
sort_dctrl_sort_dctrl_LDADD = lib/libdctrl.la -Lgnulib/lib/ -lgnu

tbl_dctrl_tbl_dctrl_SOURCES = tbl-dctrl/tbl-dctrl.c
tbl_dctrl_tbl_dctrl_LDADD = lib/libdctrl.la -Lgnulib/lib/ -lgnu

join_dctrl_join_dctrl_SOURCES = join-dctrl/join-dctrl.c
join_dctrl_join_dctrl_LDADD = lib/libdctrl.la -Lgnulib/lib/ -lgnu

lib_libdctrl_la_SOURCES = \
lib/align.h \
lib/atom.c \
lib/atom.h \
lib/fieldtrie.c \
lib/fieldtrie.h \
lib/fnutil.c \
lib/fnutil.h \
lib/fsaf.c \
lib/fsaf.h \
lib/i18n.h \
lib/ifile.c \
lib/ifile.h \
lib/misc.c \
lib/misc.h \
lib/msg.c \
lib/msg.h \
lib/para_bundle.c \
lib/para_bundle.h \
lib/paragraph.c \
lib/paragraph.h \
lib/para_pool.c \
lib/para_pool.h \
lib/predicate.c \
lib/predicate.h \
lib/sorter.c \
lib/sorter.h \
lib/strlist.c \
lib/strlist.h \
lib/strutil.c \
lib/strutil.h \
lib/util.c \
lib/util.h \
lib/version.c \
lib/version.h