Blob


1 SUBDIRS = test
3 bin_PROGRAMS = telescope
5 EXTRA_telescope_SOURCES = compat/ohash.h compat/queue.h compat/imsg.h contrib
7 telescope_SOURCES = cmd.c \
8 cmd.gen.c \
9 compl.c \
10 control.c \
11 defaults.c \
12 downloads.c \
13 fs.c \
14 gencmd.awk \
15 help.c \
16 hist.c \
17 include/cmd.h \
18 include/compat.h \
19 include/compl.h \
20 include/control.h \
21 include/defaults.h \
22 include/fs.h \
23 include/keymap.h \
24 include/mcache.h \
25 include/minibuffer.h \
26 include/pages.h \
27 include/parser.h \
28 include/session.h \
29 include/telescope.h \
30 include/ui.h \
31 include/utf8.h \
32 include/utils.h \
33 iri.c \
34 iri.h \
35 keymap.c \
36 mcache.c \
37 mime.c \
38 minibuffer.c \
39 net.c \
40 pages.c \
41 parse.y \
42 parser/parser.c \
43 parser/parser_gemtext.c \
44 parser/parser_gophermap.c \
45 parser/parser_textpatch.c \
46 parser/parser_textplain.c \
47 sandbox.c \
48 session.c \
49 telescope.c \
50 tofu.c \
51 u/emoji-matcher.c \
52 u/genemoji.sh \
53 u/utf8.c \
54 u/wrap.c \
55 ui.c \
56 utils.c
58 # phos bundled files
59 telescope_SOURCES += phos/phos.h \
60 phos/phos_uri.c
62 noinst_PROGRAMS = pagebundler
63 pagebundler_SOURCES = pagebundler.c
65 pagebundler$(EXEEXT): pagebundler.c
66 $(HOSTCC) $(HOSTCFLAGS) -o $@ $(srcdir)/pagebundler.c
68 # ugly; builds bundled libgrapheme if needed
69 $(srcdir)/libgrapheme/libgrapheme.a:
70 ${MAKE} -C $(srcdir)/libgrapheme libgrapheme.a
72 clean-local:
73 test -n "$(LIBGRAPHEME)" && ${MAKE} -C libgrapheme clean || true
75 BUILT_SOURCES = cmd.gen.c u/emoji-matcher.c pages.c
77 CLEANFILES = cmd.gen.c u/emoji-matcher.c pages.c \
78 parse.c
80 AM_CPPFLAGS = -I$(top_srcdir)/phos -I$(top_srcdir)/include
81 LDADD = $(LIBOBJS) $(LIBGRAPHEME)
82 EXTRA_telescope_DEPENDENCIES = $(LIBGRAPHEME)
84 EXTRA_DIST = ChangeLog LICENSE README.md data/emoji.txt pages/*.gmi
86 dist_man1_MANS = telescope.1
88 cmd.gen.c: $(srcdir)/include/cmd.h $(srcdir)/gencmd.awk
89 ${AWK} -f $(srcdir)/gencmd.awk < $(srcdir)/include/cmd.h > $@
91 u/emoji-matcher.c: $(srcdir)/data/emoji.txt $(srcdir)/u/genemoji.sh
92 $(srcdir)/u/genemoji.sh $(srcdir)/data/emoji.txt > $@
94 PAGES = $(builddir)/pages/about_about.gmi \
95 $(builddir)/pages/about_blank.gmi \
96 $(builddir)/pages/about_crash.gmi \
97 $(builddir)/pages/about_help.gmi \
98 $(builddir)/pages/about_license.gmi \
99 $(builddir)/pages/about_new.gmi
100 pages.c: pagebundler $(srcdir)/include/pages.h ${PAGES}
101 echo > $@
102 echo "#include \"include/pages.h\"" >> $@
103 ./pagebundler $(builddir)/pages/about_about.gmi >> $@
104 ./pagebundler $(builddir)/pages/about_blank.gmi >> $@
105 ./pagebundler $(builddir)/pages/about_crash.gmi >> $@
106 ./pagebundler $(builddir)/pages/about_help.gmi >> $@
107 ./pagebundler $(builddir)/pages/about_license.gmi >> $@
108 ./pagebundler $(builddir)/pages/about_new.gmi >> $@
109 ./pagebundler $(builddir)/pages/bookmarks.gmi >> $@