2020-05-08 15:45:43 +02:00
|
|
|
# tinmop: an humble mastodon client
|
|
|
|
# Copyright (C) 2020 cage
|
|
|
|
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program.
|
|
|
|
# If not, see [[http://www.gnu.org/licenses/][http://www.gnu.org/licenses/]].
|
|
|
|
|
2020-10-11 18:22:07 +02:00
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
2020-05-08 15:45:43 +02:00
|
|
|
|
2020-10-11 18:22:07 +02:00
|
|
|
bin_SCRIPTS = tinmop
|
2020-05-08 15:45:43 +02:00
|
|
|
|
2020-10-11 18:22:07 +02:00
|
|
|
CLEANFILES = $(bin_SCRIPTS) $(CONF_PATH_FILE);
|
2020-05-08 15:45:43 +02:00
|
|
|
|
2020-10-11 18:22:07 +02:00
|
|
|
CONF_PATH_FILE = src/config.lisp
|
2020-05-08 15:45:43 +02:00
|
|
|
|
2020-10-11 18:22:07 +02:00
|
|
|
CONF_PATH_FILE_IN = src/config.lisp.in
|
2020-05-08 15:45:43 +02:00
|
|
|
|
2020-10-11 18:22:07 +02:00
|
|
|
CONF_PATH_FILE_IN_IN = src/config.lisp.in.in
|
2020-05-08 15:45:43 +02:00
|
|
|
|
2020-10-11 18:22:07 +02:00
|
|
|
BUILT_SOURCES = $(CONF_PATH_FILE)
|
|
|
|
|
|
|
|
EXTRA_DIST = config.rpath m4/ChangeLog tinmop.asd README.org src \
|
2023-07-29 12:23:02 +02:00
|
|
|
LICENSES.org COPYING etc/shared.conf etc/default-theme.conf etc/shared-gui.conf \
|
2021-08-05 16:07:06 +02:00
|
|
|
etc/init.lisp compare_version.awk
|
2020-05-08 15:45:43 +02:00
|
|
|
|
2020-10-11 18:22:07 +02:00
|
|
|
SUBDIRS = po
|
2020-05-08 15:45:43 +02:00
|
|
|
|
2023-06-18 15:57:03 +02:00
|
|
|
dist_doc_DATA = README.org LICENSES.org CONTRIBUTING.org \
|
2022-05-01 10:08:01 +02:00
|
|
|
doc/tinmop.org doc/send-toot.lisp NEWS.org ChangeLog AUTHORS
|
2020-05-08 15:45:43 +02:00
|
|
|
|
2020-10-11 18:22:07 +02:00
|
|
|
confdir = $(sysconfdir)/$(PACKAGE)
|
2020-05-08 15:45:43 +02:00
|
|
|
|
2024-03-19 21:05:02 +01:00
|
|
|
if ENABLE_COMPLETION
|
|
|
|
completiondir = $(COMPLETION_DIR)
|
|
|
|
dist_completion_DATA = data/completion/tinmop
|
|
|
|
endif
|
|
|
|
|
2023-07-29 12:23:02 +02:00
|
|
|
dist_conf_DATA = etc/init.lisp etc/default-theme.conf etc/shared.conf etc/shared-gui.conf
|
2020-05-15 16:12:40 +02:00
|
|
|
|
2024-02-15 16:15:18 +01:00
|
|
|
nobase_dist_pkgdata_DATA = \
|
2024-09-15 15:21:14 +02:00
|
|
|
data/cover.gmi \
|
2024-02-15 16:15:18 +01:00
|
|
|
data/error-pages/51 \
|
2023-07-21 14:30:16 +02:00
|
|
|
data/error-pages/header-51.png \
|
2023-07-16 15:26:09 +02:00
|
|
|
data/icons/fmw_arrow-down.png \
|
|
|
|
data/icons/fmw_arrow-up.png \
|
|
|
|
data/icons/fmw_back.png \
|
|
|
|
data/icons/fmw_bullet-go.png \
|
|
|
|
data/icons/fmw_bus-go.png \
|
|
|
|
data/icons/fmw_bus.png \
|
|
|
|
data/icons/fmw_cross.png \
|
|
|
|
data/icons/fmw_dice.png \
|
|
|
|
data/icons/fmw_document-accept.png \
|
|
|
|
data/icons/fmw_document-add.png \
|
|
|
|
data/icons/fmw_document-delete.png \
|
|
|
|
data/icons/fmw_document-edit.png \
|
|
|
|
data/icons/fmw_folder.png \
|
|
|
|
data/icons/fmw_go.png \
|
|
|
|
data/icons/fmw_open_tour.png \
|
|
|
|
data/icons/fmw_page.png \
|
2024-02-15 16:15:18 +01:00
|
|
|
data/icons/fmw_profile.png \
|
2023-07-16 15:26:09 +02:00
|
|
|
data/icons/fmw_refresh.png \
|
|
|
|
data/icons/fmw_rss-add.png \
|
|
|
|
data/icons/fmw_rss-delete.png \
|
|
|
|
data/icons/fmw_search.png \
|
|
|
|
data/icons/fmw_star-blue.png \
|
|
|
|
data/icons/fmw_star-yellow.png \
|
|
|
|
data/icons/fmw_text.png \
|
2024-09-29 11:38:12 +02:00
|
|
|
data/icons/fmw_toc.png \
|
2023-07-16 15:26:09 +02:00
|
|
|
data/icons/fmw_two-pictures.png \
|
|
|
|
data/icons/fmw_uparrow.png \
|
|
|
|
data/modules/delete-by-regex.lisp \
|
|
|
|
data/modules/expand-abbrev-command-window.lisp \
|
2024-04-13 16:21:43 +02:00
|
|
|
data/modules/fetch-expired-poll.lisp \
|
2023-07-16 15:26:09 +02:00
|
|
|
data/modules/next-previous-open.lisp \
|
|
|
|
data/modules/rewrite-message-urls.lisp \
|
|
|
|
data/modules/share-gemini-link.lisp \
|
|
|
|
data/scripts/delete-old-posts.lisp \
|
2023-05-13 14:51:35 +02:00
|
|
|
data/scripts/export-gemini-subscriptions.lisp \
|
2023-07-16 15:26:09 +02:00
|
|
|
data/scripts/fetch-post-tree.lisp \
|
|
|
|
data/scripts/gemget.lisp \
|
|
|
|
data/scripts/generate-gemlog.lisp \
|
|
|
|
data/scripts/get-following.lisp \
|
|
|
|
data/scripts/import-following.lisp \
|
|
|
|
data/scripts/import-gemini-subscriptions.lisp \
|
|
|
|
data/scripts/welcome-bot.lisp
|
2021-11-28 11:28:17 +01:00
|
|
|
|
2020-10-11 18:22:07 +02:00
|
|
|
dist_man1_MANS = doc/tinmop.man
|
2020-05-08 15:45:43 +02:00
|
|
|
|
2021-09-02 15:58:36 +02:00
|
|
|
$(PACKAGE): $(CONF_PATH_FILE) *.asd src/*
|
2024-04-21 18:49:55 +02:00
|
|
|
$(LISP_COMPILER) \
|
2024-10-27 12:04:07 +01:00
|
|
|
--dynamic-space-size $(DYNAMIC_MEMORY_SIZE) \
|
2024-05-14 21:33:56 +02:00
|
|
|
--eval "(require 'asdf)" \
|
2022-03-27 18:49:45 +02:00
|
|
|
--eval "(push \"$$(pwd)/\" asdf:*central-registry*)" \
|
2022-03-27 13:37:54 +02:00
|
|
|
--eval "(asdf:make '$(PACKAGE) :build-pathname \"../$(PACKAGE)\")" \
|
|
|
|
--eval "(uiop:quit)"
|
|
|
|
mv src/tinmop $(PACKAGE)
|
2024-05-01 12:36:00 +02:00
|
|
|
|
2020-05-08 15:45:43 +02:00
|
|
|
$(CONF_PATH_FILE):
|
|
|
|
grep "^;" $(CONF_PATH_FILE_IN) > $(CONF_PATH_FILE)
|
|
|
|
echo -e "(in-package :config)\n" >> $(CONF_PATH_FILE);
|
|
|
|
echo "(alexandria:define-constant +sys-data-dir+" >> $(CONF_PATH_FILE);
|
2021-11-28 11:28:17 +01:00
|
|
|
echo -e "\"$(pkgdatadir)\" :test #'string=)\n" >> $(CONF_PATH_FILE);
|
2020-05-08 15:45:43 +02:00
|
|
|
|
|
|
|
echo "(alexandria:define-constant +sys-conf-dir+" >> $(CONF_PATH_FILE);
|
2020-05-16 13:04:13 +02:00
|
|
|
echo -e "\"$(confdir)\" :test #'string=)\n" >> $(CONF_PATH_FILE);
|
2020-05-08 15:45:43 +02:00
|
|
|
|
|
|
|
echo "(alexandria:define-constant +catalog-dir+" >> $(CONF_PATH_FILE);
|
|
|
|
echo -e "\""$(localedir)"\" :test #'string=)\n" >> $(CONF_PATH_FILE);
|
|
|
|
|
|
|
|
cat $(CONF_PATH_FILE).in | sed "\/^;;.*$\/d" >> $(CONF_PATH_FILE);
|
2020-05-11 20:35:56 +02:00
|
|
|
|
|
|
|
dist-hook:
|
|
|
|
rm -fv $(top_distdir)/$(CONF_PATH_FILE)
|
2020-10-11 18:22:07 +02:00
|
|
|
rm -fv $(top_distdir)/$(CONF_PATH_FILE_IN)
|