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 keymap.c \
34 mcache.c \
35 mime.c \
36 minibuffer.c \
37 net.c \
38 pages.c \
39 parse.y \
40 parser/parser.c \
41 parser/parser_gemtext.c \
42 parser/parser_gophermap.c \
43 parser/parser_textpatch.c \
44 parser/parser_textplain.c \
45 sandbox.c \
46 session.c \
47 telescope.c \
48 tofu.c \
49 u/emoji-matcher.c \
50 u/genemoji.sh \
51 u/utf8.c \
52 u/wrap.c \
53 ui.c \
54 utils.c
56 # phos bundled files
57 telescope_SOURCES += phos/phos.h \
58 phos/phos_uri.c
60 noinst_PROGRAMS = pagebundler
61 pagebundler_SOURCES = pagebundler.c
63 pagebundler$(EXEEXT): pagebundler.c
64 $(HOSTCC) $(HOSTCFLAGS) -o $@ $(srcdir)/pagebundler.c
66 # ugly; builds bundled libgrapheme if needed
67 $(srcdir)/libgrapheme/libgrapheme.a:
68 ${MAKE} -C $(srcdir)/libgrapheme libgrapheme.a
70 clean-local:
71 test -n "$(LIBGRAPHEME)" && ${MAKE} -C libgrapheme clean || true
73 BUILT_SOURCES = cmd.gen.c u/emoji-matcher.c pages.c
75 CLEANFILES = cmd.gen.c u/emoji-matcher.c pages.c \
76 parse.c
78 AM_CPPFLAGS = -I$(top_srcdir)/phos -I$(top_srcdir)/include
79 LDADD = $(LIBOBJS) $(LIBGRAPHEME)
80 EXTRA_telescope_DEPENDENCIES = $(LIBGRAPHEME)
82 EXTRA_DIST = ChangeLog LICENSE README.md data/emoji.txt pages/*.gmi
84 dist_man1_MANS = telescope.1
86 cmd.gen.c: $(srcdir)/include/cmd.h $(srcdir)/gencmd.awk
87 ${AWK} -f $(srcdir)/gencmd.awk < $(srcdir)/include/cmd.h > $@
89 u/emoji-matcher.c: $(srcdir)/data/emoji.txt $(srcdir)/u/genemoji.sh
90 $(srcdir)/u/genemoji.sh $(srcdir)/data/emoji.txt > $@
92 PAGES = $(builddir)/pages/about_about.gmi \
93 $(builddir)/pages/about_blank.gmi \
94 $(builddir)/pages/about_crash.gmi \
95 $(builddir)/pages/about_help.gmi \
96 $(builddir)/pages/about_license.gmi \
97 $(builddir)/pages/about_new.gmi
98 pages.c: pagebundler $(srcdir)/include/pages.h ${PAGES}
99 echo > $@
100 echo "#include \"include/pages.h\"" >> $@
101 ./pagebundler $(builddir)/pages/about_about.gmi >> $@
102 ./pagebundler $(builddir)/pages/about_blank.gmi >> $@
103 ./pagebundler $(builddir)/pages/about_crash.gmi >> $@
104 ./pagebundler $(builddir)/pages/about_help.gmi >> $@
105 ./pagebundler $(builddir)/pages/about_license.gmi >> $@
106 ./pagebundler $(builddir)/pages/about_new.gmi >> $@
107 ./pagebundler $(builddir)/pages/bookmarks.gmi >> $@