3 f0e62b85 2024-02-15 op bin_PROGRAMS = telescope telescope-identity
5 f8ce6267 2024-02-23 op EXTRA_telescope_SOURCES = compat/ohash.h compat/queue.h compat/imsg.h contrib \
8 cfe4e15a 2024-11-10 op telescope_SOURCES = bufio.c bufio.h certs.c certs.h cmd.c cmd.gen.c cmd.h \
9 cfe4e15a 2024-11-10 op compat.h compl.c compl.h control.c control.h \
10 cfe4e15a 2024-11-10 op defaults.c defaults.h downloads.c emoji-matcher.c \
11 cfe4e15a 2024-11-10 op ev.c ev.h exec.c exec.h fs.c fs.h \
12 cfe4e15a 2024-11-10 op gencmd.awk genemoji.sh help.c hist.c imsgev.c imsgev.h \
13 cfe4e15a 2024-11-10 op iri.c iri.h keymap.c keymap.h mailcap.c mailcap.h \
14 cfe4e15a 2024-11-10 op mcache.c mcache.h mime.c minibuffer.c minibuffer.h \
15 cfe4e15a 2024-11-10 op net.c pages.c pages.h parse.y parser.c parser.h \
16 cfe4e15a 2024-11-10 op parser_gemtext.c parser_gophermap.c parser_textpatch.c \
17 cfe4e15a 2024-11-10 op parser_textplain.c sandbox.c session.c session.h \
18 cfe4e15a 2024-11-10 op telescope.c telescope.h tofu.c tofu.h ui.c ui.h \
19 cfe4e15a 2024-11-10 op utf8.c utf8.h utils.c utils.h wrap.c \
20 cfe4e15a 2024-11-10 op xwrapper.c xwrapper.h
22 cfe4e15a 2024-11-10 op telescope_identity_SOURCES = certs.c certs.h fs.c fs.h hist.c hist.h \
23 cfe4e15a 2024-11-10 op identity.c parser.c parser.h xwrapper.c xwrapper.h
25 a2728733 2021-07-18 op noinst_PROGRAMS = pagebundler
26 a2728733 2021-07-18 op pagebundler_SOURCES = pagebundler.c
28 cfe4e15a 2024-11-10 op EXCLUDE_FROM_COCCI = bufio.c certs.c cmd-gen.c emoji-matcher.c ev.c hist.c \
29 cfe4e15a 2024-11-10 op pages.c parse.c xwrapper.c
32 3d89457c 2024-06-18 thomas.ad SPATCH_FILES = $(foreach ext,$(EXTS),$(filter %$(ext), \
33 3d89457c 2024-06-18 thomas.ad $(filter-out $(EXCLUDE_FROM_COCCI), \
34 3d89457c 2024-06-18 thomas.ad $(telescope_SOURCES), $(telescope_identity_SOURCES), \
35 b60507ee 2024-09-01 op $(wildcard test/*.c))))
36 3d89457c 2024-06-18 thomas.ad .PHONY: cocci
38 3d89457c 2024-06-18 thomas.ad spatch --sp-file ./contrib/coccinelle/wrap.cocci \
39 3d89457c 2024-06-18 thomas.ad --in-place $(SPATCH_FILES)
41 5fe7bfdd 2024-01-13 op # Override implicit rule since we have to use HOSTCC and not CC.
42 71066d24 2021-11-26 op pagebundler$(EXEEXT): pagebundler.c
43 1e75a6b3 2021-11-29 op $(HOSTCC) $(HOSTCFLAGS) -o $@ $(srcdir)/pagebundler.c
45 3448adb0 2022-11-02 op # ugly; builds bundled libgrapheme if needed
46 f6fb796a 2024-06-06 thomas.ad .NOTPARALLEL:
47 f6fb796a 2024-06-06 thomas.ad .NOPARALLEL:
48 f6fb796a 2024-06-06 thomas.ad $(LIBGRAPHEME):
49 3448adb0 2022-11-02 op ${MAKE} -C $(srcdir)/libgrapheme libgrapheme.a
52 3448adb0 2022-11-02 op test -n "$(LIBGRAPHEME)" && ${MAKE} -C libgrapheme clean || true
54 1ac119fb 2024-01-23 op BUILT_SOURCES = cmd.gen.c emoji-matcher.c pages.c
56 1ac119fb 2024-01-23 op CLEANFILES = cmd.gen.c emoji-matcher.c pages.c parse.c
58 3448adb0 2022-11-02 op LDADD = $(LIBOBJS) $(LIBGRAPHEME)
59 3448adb0 2022-11-02 op EXTRA_telescope_DEPENDENCIES = $(LIBGRAPHEME)
61 cfe4e15a 2024-11-10 op EXTRA_DIST = ChangeLog LICENSE README.md data/emoji.txt \
62 cfe4e15a 2024-11-10 op libgrapheme pages/*.gmi
64 57ba4f1b 2024-02-16 op dist_man1_MANS = telescope.1 telescope-identity.1
66 6ab857d5 2024-01-23 op cmd.gen.c: $(srcdir)/cmd.h $(srcdir)/gencmd.awk
67 6ab857d5 2024-01-23 op ${AWK} -f $(srcdir)/gencmd.awk < $(srcdir)/cmd.h > $@
69 1ac119fb 2024-01-23 op emoji-matcher.c: $(srcdir)/data/emoji.txt $(srcdir)/genemoji.sh
70 1ac119fb 2024-01-23 op $(srcdir)/genemoji.sh $(srcdir)/data/emoji.txt > $@
72 0e4c3d62 2022-02-26 op PAGES = $(builddir)/pages/about_about.gmi \
73 0e4c3d62 2022-02-26 op $(builddir)/pages/about_blank.gmi \
74 0e4c3d62 2022-02-26 op $(builddir)/pages/about_crash.gmi \
75 0e4c3d62 2022-02-26 op $(builddir)/pages/about_help.gmi \
76 0e4c3d62 2022-02-26 op $(builddir)/pages/about_license.gmi \
77 0e4c3d62 2022-02-26 op $(builddir)/pages/about_new.gmi
78 6ab857d5 2024-01-23 op pages.c: pagebundler $(srcdir)/pages.h ${PAGES}
79 a646688f 2024-06-09 op echo "#include \"pages.h\"" > $@
80 0e4c3d62 2022-02-26 op ./pagebundler $(builddir)/pages/about_about.gmi >> $@
81 0e4c3d62 2022-02-26 op ./pagebundler $(builddir)/pages/about_blank.gmi >> $@
82 0e4c3d62 2022-02-26 op ./pagebundler $(builddir)/pages/about_crash.gmi >> $@
83 0e4c3d62 2022-02-26 op ./pagebundler $(builddir)/pages/about_help.gmi >> $@
84 0e4c3d62 2022-02-26 op ./pagebundler $(builddir)/pages/about_license.gmi >> $@
85 0e4c3d62 2022-02-26 op ./pagebundler $(builddir)/pages/about_new.gmi >> $@
86 0e4c3d62 2022-02-26 op ./pagebundler $(builddir)/pages/bookmarks.gmi >> $@
88 93ca14d5 2024-02-23 op # --- maintainer targets ---
90 93ca14d5 2024-02-23 op PUBKEY = missing
91 93ca14d5 2024-02-23 op PRIVKEY = missing
93 1c09b51b 2024-06-26 thomas.ad # Ensure that, before we release, that the files in libgrapheme don't include
94 1c09b51b 2024-06-26 thomas.ad # any compiled files, etc. We don't want these as part of a release tarball.
95 1c09b51b 2024-06-26 thomas.ad dist-hook:
96 8f0d3975 2024-06-27 thomas.ad ${MAKE} -C $(distdir)/libgrapheme clean
99 93ca14d5 2024-02-23 op sha256 ${distdir}.tar.gz > ${distdir}.tar.gz.sha256
100 93ca14d5 2024-02-23 op signify -S -e -m ${distdir}.tar.gz.sha256 -s ${PRIVKEY}
101 93ca14d5 2024-02-23 op signify -C -p ${PUBKEY} -x ${distdir}.tar.gz.sha256.sig