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 \
|
2021-08-05 16:07:06 +02:00
|
|
|
LICENSES.org COPYING etc/shared.conf etc/default-theme.conf \
|
|
|
|
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
|
|
|
|
2021-08-06 21:40:07 +02:00
|
|
|
dist_doc_DATA = README.org README.txt LICENSES.org CONTRIBUTING.org \
|
2021-08-05 16:07:06 +02:00
|
|
|
doc/man.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
|
|
|
|
2020-12-28 15:37:13 +01:00
|
|
|
dist_conf_DATA = etc/init.lisp etc/default-theme.conf etc/shared.conf
|
2020-05-15 16:12:40 +02:00
|
|
|
|
2022-02-20 14:40:35 +01:00
|
|
|
dist_pkgdata_DATA = modules/delete-by-regex.lisp \
|
2021-12-03 16:22:53 +01:00
|
|
|
modules/expand-abbrev-command-window.lisp \
|
2021-10-15 14:06:04 +02:00
|
|
|
modules/next-previous-open.lisp \
|
|
|
|
modules/rewrite-message-urls.lisp \
|
2022-02-20 14:40:35 +01:00
|
|
|
modules/share-gemini-link.lisp \
|
|
|
|
scripts/export-gemini-subscriptions.lisp \
|
|
|
|
scripts/gemget.lisp \
|
|
|
|
scripts/get-following.lisp \
|
|
|
|
scripts/import-following.lisp \
|
|
|
|
scripts/import-gemini-subscriptions.lisp \
|
|
|
|
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/*
|
2020-05-08 15:45:43 +02:00
|
|
|
$(LISP_COMPILER) \
|
|
|
|
--eval "(asdf:load-system '$(PACKAGE))" \
|
|
|
|
--eval "(in-package main)" \
|
|
|
|
--eval "(sb-ext:save-lisp-and-die \"$(PACKAGE)\" :toplevel 'main::main :executable t :purify t :save-runtime-options t)"
|
|
|
|
|
|
|
|
$(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);
|
|
|
|
|
|
|
|
echo "(alexandria:define-constant +text-domain+" >> $(CONF_PATH_FILE);
|
|
|
|
echo -e "\""$(PACKAGE)"\" :test #'string=)\n" >> $(CONF_PATH_FILE);
|
|
|
|
|
|
|
|
echo "(alexandria:define-constant +program-name+" >> $(CONF_PATH_FILE);
|
|
|
|
echo -e "\""$(PACKAGE)"\" :test #'string=)\n" >> $(CONF_PATH_FILE);
|
|
|
|
|
|
|
|
echo "(alexandria:define-constant +program-version+" >> $(CONF_PATH_FILE);
|
|
|
|
echo -e "\""$(VERSION)"\" :test #'string=)\n" >> $(CONF_PATH_FILE);
|
|
|
|
|
2020-05-15 16:44:06 +02:00
|
|
|
echo "(alexandria:define-constant +issue-tracker+" >> $(CONF_PATH_FILE);
|
|
|
|
echo -e "\""$(PACKAGE_BUGREPORT)"\" :test #'string=)\n" >> $(CONF_PATH_FILE);
|
2020-05-08 15:45:43 +02:00
|
|
|
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)
|