aboutsummaryrefslogtreecommitdiff
blob: b36173c1eb1068783098cb4255e582ca8854cfa3 (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
96
97
ACLOCAL_AMFLAGS = -I autotools/m4

SUBDIRS = \
	autotools/gnulib \
	libq \
	. \
	tests \
	$(NULL)

APPLETS = \
	q \
	qatom \
	qcheck \
	qdepends \
	qfile \
	qgrep \
	qkeyword \
	qlist \
	qlop \
	qmerge \
	qpkg \
	qsearch \
	qsize \
	qtbz2 \
	qtegrity \
	quse \
	qxpak \
	$(NULL)

dist_man_MANS = \
	man/q.1 \
	man/qatom.1 \
	man/qcheck.1 \
	man/qdepends.1 \
	man/qfile.1 \
	man/qgrep.1 \
	man/qkeyword.1 \
	man/qlist.1 \
	man/qlop.1 \
	man/qmerge.1 \
	man/qpkg.1 \
	man/qsearch.1 \
	man/qsize.1 \
	man/qtbz2.1 \
	man/qtegrity.1 \
	man/quse.1 \
	man/qxpak.1 \
	$(NULL)

bin_PROGRAMS = q
q_SOURCES = \
	main.c \
	q.c \
	qatom.c \
	qcheck.c \
	qdepends.c \
	qfile.c \
	qgrep.c \
	qkeyword.c \
	qlist.c \
	qlop.c \
	qmerge.c \
	qpkg.c \
	qsearch.c \
	qsize.c \
	qtbz2.c \
	qtegrity.c \
	quse.c \
	qxpak.c \
	$(NULL)
q_CPPFLAGS = \
	-I$(top_srcdir)/libq \
	-I$(top_builddir)/autotools/gnulib \
	-I$(top_srcdir)/autotools/gnulib \
	$(NULL)
q_LDADD = \
	$(top_builddir)/libq/libq.la \
	$(top_builddir)/autotools/gnulib/libgnu.a \
	-liniparser \
	$(LIB_CLOCK_GETTIME) \
	$(LIB_EACCESS) \
	$(NULL)

install-exec-hook:
	cd $(DESTDIR)$(bindir); \
	for applet in $(APPLETS) ; do \
		[ ! -e "$${applet}" ] && $(LN_S) q $${applet} ; \
	done

clean-local:
	rm -f $(APPLETS)

EXTRA_DIST = \
	autotools/m4/gnulib-cache.m4 \
	applets.h \
	tests \
	$(NULL)