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 BUILT_SOURCES = cmd.gen.c u/emoji-matcher.c pages.c
68 CLEANFILES = cmd.gen.c u/emoji-matcher.c pages.c \
69 parse.c
71 AM_CPPFLAGS = -I$(top_srcdir)/phos -I$(top_srcdir)/include
72 LDADD = $(LIBOBJS)
74 EXTRA_DIST = ChangeLog LICENSE README.md data/emoji.txt pages/*.gmi
76 dist_man1_MANS = telescope.1
78 cmd.gen.c: $(srcdir)/include/cmd.h $(srcdir)/gencmd.awk
79 ${AWK} -f $(srcdir)/gencmd.awk < $(srcdir)/include/cmd.h > $@
81 u/emoji-matcher.c: $(srcdir)/data/emoji.txt $(srcdir)/u/genemoji.sh
82 $(srcdir)/u/genemoji.sh $(srcdir)/data/emoji.txt > $@
84 PAGES = $(builddir)/pages/about_about.gmi \
85 $(builddir)/pages/about_blank.gmi \
86 $(builddir)/pages/about_crash.gmi \
87 $(builddir)/pages/about_help.gmi \
88 $(builddir)/pages/about_license.gmi \
89 $(builddir)/pages/about_new.gmi
90 pages.c: pagebundler $(srcdir)/include/pages.h ${PAGES}
91 echo > $@
92 echo "#include \"include/pages.h\"" >> $@
93 ./pagebundler $(builddir)/pages/about_about.gmi >> $@
94 ./pagebundler $(builddir)/pages/about_blank.gmi >> $@
95 ./pagebundler $(builddir)/pages/about_crash.gmi >> $@
96 ./pagebundler $(builddir)/pages/about_help.gmi >> $@
97 ./pagebundler $(builddir)/pages/about_license.gmi >> $@
98 ./pagebundler $(builddir)/pages/about_new.gmi >> $@
99 ./pagebundler $(builddir)/pages/bookmarks.gmi >> $@