Commit 29c7b715 authored by Vivien Kraus's avatar Vivien Kraus

Merge branch '19-use-gtk-to-show-the-status-of-the-game' into 'develop'

Resolve "Use Gtk+ to show the status of the game"

Closes #19

See merge request gugurumbe/tarot!17
parents 0b492099 48666adb
Pipeline #98549 passed with stages
in 4 minutes and 30 seconds
Vivien Kraus
Table of Contents
_________________
Vivien Kraus <vivien@planete-kraus.eu>
......@@ -19,143 +19,37 @@
SUBDIRS = lib-library lib-program
if NEED_LIBOPTS
SUBDIRS += $(LIBOPTS_DIR)
endif # NEED_LIBOPTS
SUBDIRS += $(LIBOPTS_DIR)
endif
AUTOMAKE_OPTIONS = subdir-objects
bin_PROGRAMS =
bin_SCRIPTS =
dist_bin_SCRIPTS =
lib_LTLIBRARIES =
noinst_LTLIBRARIES =
include_HEADERS =
check_PROGRAMS =
info_TEXINFOS =
dist_man_MANS =
helpdir = $(datadir)/help
chelpdir = $(helpdir)/C
dist_chelp_DATA =
pkgconfigdir = $(datadir)/pkgconfig
pkgconfig_DATA =
pkgdatadir = $(datadir)/@PACKAGE@
pkgdata_SCRIPTS =
sysconf_DATA =
dist_sysconf_DATA =
tarotsysconfdir = $(sysconfdir)/tarot
tarotsysconf_DATA =
dist_tarotsysconf_DATA =
dist_pkgdata_DATA = COPYING
dist_html_DATA =
iconsdir = $(datadir)/icons
xlargeiconsdir = $(iconsdir)/hicolor/256x256/apps
largeiconsdir = $(iconsdir)/hicolor/48x48/apps
mediumiconsdir = $(iconsdir)/hicolor/32x32/apps
smalliconsdir = $(iconsdir)/hicolor/22x22/apps
dist_xlargeicons_DATA =
dist_largeicons_DATA =
dist_mediumicons_DATA =
dist_smallicons_DATA =
applicationsdir = $(datadir)/applications
applications_DATA = %reldir%/eu.planete_kraus.Tarot.desktop
INDENTED =
TANGLED =
SUFFIXES =
dist_noinst_SCRIPTS = \
autogen.sh \
run-tarot.sh \
git-version-gen
nodist_noinst_DATA =
VALGRIND_SUPPRESSION_FILE = \
valgrind.supp
ENUM_HEADER_FILES =
include defaults.am
ACLOCAL_AMFLAGS = -I m4 -I lib-library/m4 -I lib-program/m4
EXTRA_DIST = \
tarot.org \
setup.el \
AUTHORS.org \
lib-library/m4/gnulib-cache.m4 \
$(top_srcdir)/.version \
.gitlab-ci.yml \
$(VALGRIND_SUPPRESSION_FILE) \
eu.planete_kraus.Tarot.json \
fix-libopts
BUILT_SOURCES = \
$(top_srcdir)/.version
CLEANFILES =
AM_DISTCHECK_CONFIGURE_FLAGS = \
--enable-silent-rules=yes \
--disable-introspection \
--disable-vapigen
AM_CPPFLAGS = \
-DLOCALEDIR="\"$(localedir)\"" \
-DSYSCONFDIR="\"$(sysconfdir)\"" \
-I. -I$(srcdir) \
-Ilib-library -I$(srcdir)/lib-library \
-Ilib-program -I$(srcdir)/lib-program
AM_CFLAGS =
AM_YFLAGS = -d
AM_LIBS =
AM_LDADD =
# Texinfo -> html flags, overriden in doc/Makefile.am
AM_MAKEINFOHTMLFLAGS =
TESTS =
AM_TESTS_ENVIRONMENT = \
LANG="C" \
LD_LIBRARY_PATH="src/.libs:$$LD_LIBRARY_PATH" \
GUILE_AUTO_COMPILE=0 \
GUILE_LOAD_PATH="$(srcdir)/src/scm:src/scm:$$GUILE_LOAD_PATH" \
GUILE_COMPILED_LOAD_PATH="src/scm:$$GUILE_COMPILED_LOAD_PATH" \
$(LIBTOOL) --mode=execute
if HAVE_VALGRIND
AM_TESTS_ENVIRONMENT += \
$(VALGRIND) --tool=memcheck \
--leak-check=full \
--error-exitcode=42 \
--suppressions=$(srcdir)/$(VALGRIND_SUPPRESSION_FILE) \
--gen-suppressions=all
endif # HAVE_VALGRIND
TEST_EXTENSIONS = .tarot
TAROT_LOG_COMPILER = $(SHELL) $(top_srcdir)/run-tarot.sh
AM_TAROT_LOG_FLAGS =
include ci/Makefile.am
AUTOMAKE_OPTIONS = subdir-objects
dist_pkgdata_DATA += COPYING
EXTRA_DIST += lib-library/m4/gnulib-cache.m4
include desktop.am
include version-gen.am
include bootstrapping.am
include program-tests.am
include valgrind.am
include standard-files.am
include gitlab-ci.am
include distcheck.am
include indent.am
include flatpak.am
include doc/Makefile.am
include src/Makefile.am
include games/Makefile.am
include icon/Makefile.am
EXTRA_DIST += $(TANGLED) %reldir%/README.md %reldir%/README
TESTS += $(check_PROGRAMS)
indent_verbose = $(indent_verbose_@AM_V@)
indent_verbose_ = $(indent_verbose_@AM_DEFAULT_V@)
indent_verbose_0 = @echo " INDENT ";
.PHONY: indent
indent: $(INDENTED)
$(indent_verbose) (cd $(srcdir) \
&& for file in $(INDENTED); do $(INDENT) --no-tabs $$file; done)
org_verbose = $(org_verbose_@AM_V@)
org_verbose_ = $(org_verbose_@AM_DEFAULT_V@)
org_verbose_0 = @echo "ORG-EXPORT $@";
README.md: %reldir%/tarot.org
$(org_verbose) ($(EMACS) \
--batch -q \
-l "$(srcdir)/setup.el" \
--file "$(srcdir)/tarot.org" \
-f org-md-export-to-markdown \
&& mv "$(srcdir)/tarot.md" "$(srcdir)/README.md")
README: README.md
$(AM_V_GEN) cp README.md README
AUTHORS: %reldir%/AUTHORS.org
$(org_verbose) ($(EMACS) \
--batch -q \
-l "$(srcdir)/setup.el" \
--file "$(srcdir)/AUTHORS.org" \
-f org-ascii-export-to-ascii \
&& mv "$(srcdir)/AUTHORS.txt" "$(srcdir)/AUTHORS")
$(top_srcdir)/.version:
$(AM_V_GEN) echo $(VERSION) > $@-t && mv $@-t $@
dist-hook:
$(AM_V_GEN) echo $(VERSION) > $(distdir)/.tarball-version
AM_CPPFLAGS += \
-DLOCALEDIR="\"$(localedir)\"" \
-DSYSCONFDIR="\"$(sysconfdir)\"" \
-DABS_TOP_SRCDIR="\"$(abs_top_srcdir)\"" \
-I. -I$(srcdir) \
-Ilib-library -I$(srcdir)/lib-library \
-Ilib-program -I$(srcdir)/lib-program \
-DLIBTAROT_VERSION_INFO="\"$(LIBTOOL_CURRENT):$(LIBTOOL_REVISION):$(LIBTOOL_AGE)\""
AM_YFLAGS = -d
This is the repository of the Tarot source code. Welcome!
You will find the usual `autogen.sh` to start building your
`configure` script, and then go all GNU!
If you don't know how to play tarot, then start with [the online manual](https://gugurumbe.frama.io/tarot/share/doc/tarot/tarot.html/index.html#Top)!
If you have a bug, you don't understand something, or have a dream,
come and share it with me on the fediverse (`@vk@mamot.fr`) or by
email.
If you want to stay up-to-date, but don't want to break your system,
and you don't have the dependencies, why not trying Flatpak? You have:
- [a flatpakrepo for the `master` branch](https://framagit.org/gugurumbe/tarot/-/jobs/artifacts/master/raw/tarot.flatpakrepo?job=flatpak), with the latest version;
- [a flatpakrepo for the `develop` branch](https://framagit.org/gugurumbe/tarot/-/jobs/artifacts/develop/raw/tarot.flatpakrepo?job=flatpak), with all the exciting new
features that have not been released yet;
- a flatpakrepo for **each merge request in progress**. That's crazy:
you can test in real time the merge requests. For this, I can't
give you a static URL, but you will find a flatpakrepo in the
artifacts of the first commit (or any subsequent commit) of the MR.
......@@ -19,7 +19,8 @@
(echo "@setfilename tarot.info" \
&& echo '\bye') > doc/tarot.texi || exit 1
[ -e src/tarot-self-train.in ] || (echo "Temporary fix" > src/tarot-self-train.in)
touch AUTHORS || exit 1
touch README || exit 1
gnulib-tool --libtool \
--lib=libgnulibrary \
--source-base=lib-library \
......@@ -27,7 +28,7 @@ gnulib-tool --libtool \
--macro-prefix=gl_lib \
--import assert || exit 1
gnulib-tool --libtool \
--lib=libgnulibrary \
--lib=libgnuprogram \
--source-base=lib-program \
--m4-base=lib-program/m4 \
--macro-prefix=gl_program \
......@@ -36,8 +37,15 @@ gnulib-tool --libtool \
rm -rf libopts libopts-* || exit 1
gunzip -c `autoopts-config libsrc` | tar -xvf - || exit 1
mv -f libopts-*.*.* libopts || exit 1
./fix-libopts || exit 1
cp -fp libopts/m4/*.m4 lib-program/m4/. || exit 1
touch README || exit 1
autoreconf -vif || exit 1
rm doc/tarot.texi || exit 1
rm AUTHORS || exit 1
rm README || exit 1
grep -v "choke.me" libopts/compat/snprintf.c > libopts/compat/snprintf.c.fixed || exit 1
mv libopts/compat/snprintf.c.fixed libopts/compat/snprintf.c || exit 1
echo "libopts_la_CPPFLAGS += -w" >> libopts/Makefile.am || exit 1
echo "EXTRA_DIST += verify.h" >> libopts/Makefile.am || exit 1
echo '#define verify(whatever)' > libopts/verify.h || exit 1
# bootstrapping.am
#
# Copyright (C) 2017, 2018 Vivien Kraus <vivien@planete-kraus.eu>
#
# 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/>.
dist_noinst_SCRIPTS += \
autogen.sh
......@@ -9,6 +9,8 @@ cd build/
../tarot-$VERSION/configure \
--enable-silent-rules=yes \
--enable-valgrind=yes \
--without-cairo \
--without-gtk \
|| (cat config.log; exit 1)
make -j 16 check || exit 1
make distclean || exit 1
#!/bin/sh
# HACKS!!!!
#
# Remove VALAFLAGS="--target-glib=2.50"
SOURCE_TOP=$(pwd)
CLEAN_TOP=$(cd .. && pwd)/clean
mkdir -p ../clean
......@@ -13,25 +17,21 @@ git clone $SOURCE_TOP . || exit 1
cd $SOURCE_TOP || exit 1
rm -rf ../tarot-*.tar.gz ../tarot-*/ tarot-*.tar.gz
sh autogen.sh || exit 1
sh autogen.sh VALAFLAGS="--target-glib=2.50" || exit 1
./configure \
CFLAGS="-Wall -Wextra -Werror -g -O0 $CFLAGS" \
VALAFLAGS="--target-glib=2.50" \
--prefix="$SOURCE_TOP/public" \
--enable-valgrind=yes \
--enable-silent-rules=yes \
|| (cat config.log ; exit 1) \
|| exit 1
make indent || exit 1
(cd lib-library && make -j 16) || exit 1
(cd lib-program && make -j 16) || exit 1
# I don't know exactly which targets are not thread safe...
make dist || exit 1
make -j 16 distcheck \
|| (cat "$SOURCE_TOP/tarot-$(cat .version)/_build/sub/test-suite.log" ; exit 1) \
|| exit 1
make -j 16 check \
|| (cat test-suite.log ; exit 1) \
|| exit 1
make -j 16 distcheck || exit 1
make -j 16 check || exit 1
make -j 16 install install-html || exit 1
make indent || exit 1
rm -rf ../../tarot-*.tar.gz ../../tarot-*/
cp tarot-*.tar.gz ../../ || exit 1
cd ../../ || exit 1
......@@ -58,6 +58,36 @@ do
fi;;
esac
done;
cd $DIST_TOP || exit 1
./configure && make maintainer-clean || exit 1
echo "Checking what files are maintainer-clean..."
for source in $(find . -type f)
do
case $source in
*.po | *.pot)
echo "Ignoring PO file $source, as it has a date in it.";;
./libopts/*)
echo "Ignoring embedded file $source, as it is not ours.";;
./.tarball-version)
echo "Ignoring .tarball-version.";;
./lib-library/* | ./lib-program/* | ./snippet/*)
echo "Ignoring $source, some gnulib stuff.";;
./m4/*)
echo "Ignoring autoconf macro $source.";;
./git-version-gen | ./gitlog-to-changelog)
echo "Ignoring helper script $source.";;
./compile | ./depcomp | ./config.rpath | ./config.sub | ./texinfo.tex | ./ar-lib | ./INSTALL | ./missing | ./test-driver | ./ltmain.sh | ./aclocal.m4 | ./ChangeLog | ./config.h.in | ./config.guess | ./Makefile.in | ./configure | ./install-sh | ./ABOUT-NLS)
echo "Ignoring required automake script $source.";;
*)
if diff $source $CLEAN_TOP/$source
then
echo "$source: OK"
else
echo "ERROR: $source is not a maintainer-clean file, but it has been rebuilt or deleted since checkout. If this file has been generated, add it to MAINTAINERCLEANFILES."
OK="no"
fi;;
esac
done;
if test "$OK" = "no"
then
echo "Failure."
......
......@@ -4,12 +4,23 @@ VERSION=$(cat public/version)
gpg --import /tarot.gpg || exit 1
cp public/tarot-$VERSION.tar.gz ./upstream.tar.gz || exit 1
rm -rf build-dir || exit 1
flatpak-builder build-dir eu.planete_kraus.Tarot.json || exit 1
echo "help" | flatpak-builder --run build-dir eu.planete_kraus.Tarot.json tarot || exit 1
flatpak-builder --repo=flatpak --gpg-sign=C8ECB5A2 --force-clean build-dir eu.planete_kraus.Tarot.json || exit 1
cp public/tarot-$VERSION.tar.gz . || exit 1
tar xf tarot-$VERSION.tar.gz || exit 1
rm -rf host-config || exit 1
mkdir -p host-config || exit 1
(cd host-config \
&& ../tarot-$VERSION/configure \
FLATPAK_BUILDER_FLAGS="--repo=flatpak --gpg-sign=C8ECB5A2" \
--enable-silent-rules=yes \
--enable-valgrind=yes \
--without-cairo \
--without-gtk \
--without-gobject \
&& (cd lib-library && make -j) \
&& (cd lib-program && make -j) \
&& make -j flatpak \
&& echo "help" | flatpak-builder --run build-dir ../tarot-$VERSION/eu.planete_kraus.Tarot.json tarot --batch) \
|| exit 1
cat > tarot.flatpakrepo <<EOF
[Flatpak Repo]
Title = Tarot repository -- '$CI_COMMIT_REF_NAME'
......@@ -20,3 +31,4 @@ Description = This is where I host the flatpaks for my personal project, only fo
Icon = https://gugurumbe.frama.io/tarot/share/doc/tarot/tarot.svg
GPGKey = $(gpg --export C8ECB5A2 | base64 --wrap=0)
EOF
cp -R host-config/flatpak .
......@@ -10,6 +10,8 @@ cd build/
--prefix="$PWD/../public" \
--enable-silent-rules=yes \
--enable-valgrind=yes \
--without-cairo \
--without-gtk \
CFLAGS="-g -fprofile-arcs -ftest-coverage" \
|| (cat config.log; exit 1)
make -j 16 install-html || exit 1
......
......@@ -7,6 +7,9 @@ AC_INIT([tarot],
[vivien@planete-kraus.eu])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIRS([m4 lib-library/m4 lib-program/m4])
AC_SUBST([LIBTOOL_CURRENT], m4_esyscmd([./git-version-gen .tarball-version | cut -d '.' -f 1]))
AC_SUBST([LIBTOOL_REVISION], m4_esyscmd([./git-version-gen .tarball-version | cut -d '.' -f 2]))
AC_SUBST([LIBTOOL_AGE], m4_esyscmd([./git-version-gen .tarball-version | cut -d '.' -f 3 | cut -d '-' -f 1]))
# Checks for programs.
AC_PROG_CC
......@@ -38,10 +41,22 @@ AC_PROG_YACC
AM_MISSING_PROG([XSLTPROC], [xsltproc])
AM_MISSING_PROG([XMLLINT], [xmllint])
AM_MISSING_PROG([CONVERT], [convert])
GOBJECT_INTROSPECTION_CHECK([1.30.0])
PKG_CHECK_VAR([GLIB_MKENUMS], [glib-2.0], [glib_mkenums])
AM_PROG_VALAC
VAPIGEN_CHECK
AC_ARG_VAR([VALAFLAGS], [Additional flags to pass to the vala compiler])
AM_MISSING_PROG([VAPIGEN], [vapigen])
AM_MISSING_PROG([GLIB_COMPILE_RESOURCES], [glib-compile-resources])
AM_MISSING_PROG([FLATPAK_BUILDER], [flatpak-builder])
AC_ARG_VAR([FLATPAK_BUILDER_FLAGS], [Additional flags to pass to flatpak-builder (key, repo, ...)])
AM_MISSING_PROG([G_IR_SCANNER], [g-ir-scanner])
AM_MISSING_PROG([G_IR_COMPILER], [g-ir-compiler])
ENABLE_RENDERER_CHOICE="no"
AC_RUN_IFELSE([AC_LANG_PROGRAM([[]], [[return 0;]])], [
AC_ARG_ENABLE([renderer], AS_HELP_STRING([--disable-renderer],
[Do not render the games with the just built program. Disabled when you can't run the compiled programs.]))
ENABLE_RENDERER_CHOICE=$enable_renderer
])
AM_CONDITIONAL([ENABLE_RENDERER], [test "x$ENABLE_RENDERER_CHOICE" != "xno"])
# Checks for libraries.
gl_lib_INIT
......@@ -64,10 +79,39 @@ AS_IF([test "x$with_gobject" != "xno"], [
])
])
AM_CONDITIONAL([WITH_GOBJECT], [test "x$WITH_GOBJECT" != "xno"])
AC_ARG_WITH([cairo], AS_HELP_STRING([--without-cairo], [Do not build the Cairo bindings]))
WITH_CAIRO="no"
AS_IF([test "x$with_cairo" != "xno"], [
PKG_CHECK_MODULES([CAIRO], [cairo cairo-png], [
WITH_CAIRO="yes"
], [
AC_MSG_ERROR([Cairo was not found. Please use --without-cairo.])
])
])
AM_CONDITIONAL([WITH_CAIRO], [test "x$WITH_CAIRO" != "xno"])
AC_ARG_WITH([gtk], AS_HELP_STRING([--without-gtk], [Do not build the Gtk+ bindings]))
WITH_GTK="no"
AS_IF([test "x$with_gtk" != "xno"], [
PKG_CHECK_MODULES([GTK], [gtk+-3.0], [
WITH_GTK="yes"
], [
AC_MSG_ERROR([Gtk+ was not found. Please use --without-gtk.])
])
])
AM_CONDITIONAL([WITH_GTK], [test "x$WITH_GTK" != "xno"])
HAVE_GTK=0
AS_IF([test "x$WITH_GTK" != "xno"], [
AC_DEFINE([HAVE_GTK], [1], [Whether we have the Gtk+ bindings])
], [
AC_DEFINE([HAVE_GTK], [0], [Whether we have the Gtk+ bindings])
])
AC_SEARCH_LIBS([atan2], [m])
AC_SEARCH_LIBS([sin], [m])
AC_SEARCH_LIBS([cos], [m])
# Checks for header files.
AC_HEADER_STDBOOL
AC_CHECK_HEADERS_ONCE([stdint.h limits.h sysexits.h])
AC_CHECK_HEADERS_ONCE([stdint.h limits.h sysexits.h math.h tgmath.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
......@@ -86,9 +130,8 @@ AC_CONFIG_FILES([
src/libtarot.pc
])
AC_CONFIG_FILES([
src/tarot-self-train
pre-inst-env
eu.planete_kraus.Tarot.desktop
], [chmod +x src/tarot-self-train pre-inst-env])
], [chmod +x pre-inst-env])
AC_OUTPUT
# defaults.am
#
# Copyright (C) 2017, 2018 Vivien Kraus <vivien@planete-kraus.eu>
#
# 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/>.
helpdir = $(datadir)/help
chelpdir = $(helpdir)/C
pkgconfigdir = $(datadir)/pkgconfig
pkgdatadir = $(datadir)/@PACKAGE@
tarotsysconfdir = $(sysconfdir)/tarot
iconsdir = $(datadir)/icons
xlargeiconsdir = $(iconsdir)/hicolor/256x256/apps
largeiconsdir = $(iconsdir)/hicolor/48x48/apps
mediumiconsdir = $(iconsdir)/hicolor/32x32/apps
smalliconsdir = $(iconsdir)/hicolor/22x22/apps
applicationsdir = $(datadir)/applications
gamesdir = $(pkgdatadir)/games
girdir = $(datadir)/gir-1.0
typelibdir = $(datadir)/girepository-1.0
vapidir = $(datadir)/vala/vapi
tarotincludedir = $(includedir)/tarot
bin_PROGRAMS =
bin_SCRIPTS =
dist_bin_SCRIPTS =
lib_LTLIBRARIES =
noinst_LTLIBRARIES =
include_HEADERS =
check_PROGRAMS =
info_TEXINFOS =
dist_chelp_DATA =
pkgconfig_DATA =
pkgdata_SCRIPTS =
sysconf_DATA =
dist_sysconf_DATA =
tarotsysconf_DATA =
dist_tarotsysconf_DATA =
dist_pkgdata_DATA =
dist_games_DATA =
dist_html_DATA =
dist_xlargeicons_DATA =
dist_largeicons_DATA =
dist_mediumicons_DATA =
dist_smallicons_DATA =
dist_man6_MANS =
applications_DATA =
tarotinclude_HEADERS =
INDENTED =
SUFFIXES =
dist_noinst_SCRIPTS =
nodist_noinst_DATA =
ENUM_HEADER_FILES =
INTROSPECTED_SOURCES =
EXTRA_DIST =
BUILT_SOURCES =
CLEANFILES =
MAINTAINERCLEANFILES =
AM_DISTCHECK_CONFIGURE_FLAGS =
AM_CPPFLAGS =
AM_CFLAGS =
AM_LIBS =
AM_LDADD =
AM_VALAFLAGS =
AM_MAKEINFOHTMLFLAGS =
TESTS =
AM_TESTS_ENVIRONMENT =
TEST_EXTENSIONS =
dist_gir_DATA =
dist_typelib_DATA =
dist_vapi_DATA =
INTROSPECTION_GIRS =
INTROSPECTION_SCANNER_ARGS =
VAPIGEN_VAPIS =
# desktop.am
#
# Copyright (C) 2018 Vivien Kraus <vivien@planete-kraus.eu>
#
# 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/>.
applications_DATA += %reldir%/eu.planete_kraus.Tarot.desktop
# distcheck.am
#
# Copyright (C) 2017, 2018 Vivien Kraus <vivien@planete-kraus.eu>
#
# 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/>.
AM_DISTCHECK_CONFIGURE_FLAGS += \
--enable-silent-rules=yes \
--disable-renderer
2017-04-29 Vivien Kraus <vivien@planete-kraus.eu>
* tarot.org (Libtarot API): add a section about libtarot-hand.
2017-04-26 Vivien Kraus <vivien@planete-kraus.eu>
* prepare-emacs.el (ox-md): Require ox-md and ox-ascii.
* tarot.org: Update the manual to use the reentrant error
management.
2017-04-14 Vivien Kraus <vivien@planete-kraus.eu>
* tarot.org.in (printers): Make example tangle to source.
* Makefile.am (examples/name_the_card.c): Now tarot.org lives in
the build directory.
($(top_srcdir)/doc/tarot.texi): Explicitly move tarot.texi in
source directory after exporting.
* tarot.org.in: Rewrite to work with org 9.
2017-04-13 Vivien Kraus <vivien@planete-kraus.eu>
* Makefile.am: move examples to doc/examples/.
2017-04-12 Vivien Kraus <vivien@planete-kraus.eu>
* Makefile.am ($(top_srcdir)/doc/tarot.texi): The texi file
depends on the example to demonstrate it.
* prepare-emacs.el (custom-set-variables): Do not need to set up python.
* tarot.org: Switch from python to elisp for the hacks.
2017-04-11 Vivien Kraus <vivien@planete-kraus.eu>
* tarot.org: Explain name.
2017-04-10 Vivien Kraus <vivien@planete-kraus.eu>
* prepare-emacs.el (ox-texinfo): Do not load user conf in prepare-emacs.el.
* tarot.org: Add the section about the game rules.
......@@ -16,31 +16,8 @@
# along with this program. If not, see
# <http://www.gnu.org/licenses/>.
info_TEXINFOS += %reldir%/tarot.texi
dist_chelp_DATA += %reldir%/tarot.xml
%canon_reldir%_tarot_TEXINFOS = \
%reldir%/fdl.texi \
%reldir%/invoke-tarot-body.texi
AM_MAKEINFOHTMLFLAGS += --css-include $(srcdir)/%reldir%/style.css
EXTRA_DIST += \
%reldir%/ChangeLog \
%reldir%/tarot.org \
%reldir%/invoke-tarot.texi \
%reldir%/setup.el
dist_html_DATA += \
%reldir%/style.css
install-html-local: install-dist_htmlDATA
TANGLED += %reldir%/generate-manual src/main.c src/tarot-opts.def
.PHONY: indent-org
indent: indent-org
indent-org: %reldir%/tarot.org
$(indent_verbose) (cd $(srcdir)/%reldir% \
&& (echo "/* *INDENT-OFF* */" ; cat tarot.org ; echo "/* *INDENT-ON* */") \
......@@ -50,25 +27,8 @@ indent-org: %reldir%/tarot.org
> tarot-indented.org \
&& mv tarot-indented.org tarot.org)
$(TANGLED): %reldir%/tarot.org %reldir%/setup.el .version
$(MAKE) $(AM_MAKEFLAGS) src/libtarot.la
$(AM_V_GEN) (cd $(srcdir)/%reldir% \
&& LIBTAROT_VERSION="$(VERSION)" \
LD_LIBRARY_PATH="$(abs_top_builddir)/src/.libs:$LD_LIBRARY_PATH" \
$(EMACS) --batch \
-l setup.el \
--file tarot.org \
-f org-babel-tangle)
%reldir%/invoke-tarot-body.texi: %reldir%/invoke-tarot.texi
$(AM_V_GEN) tail -n +3 \
$(srcdir)/%reldir%/invoke-tarot.texi \
> $(srcdir)/%reldir%/invoke-tarot-body.texi
%reldir%/tarot.texi: $(TANGLED) %reldir%/invoke-tarot-body.texi
$(MAKE) $(AM_MAKEFLAGS) src/libtarot.la
$(AM_V_GEN) $(srcdir)/%reldir%/generate-manual
%reldir%/tarot.xml: %reldir%/tarot.texi
$(AM_V_MAKEINFO) $(MAKEINFO) --docbook -I %reldir% -I $(srcdir)/%reldir% \
-o $(srcdir)/%reldir%/tarot.xml \
$(srcdir)/%reldir%/tarot.texi
include %reldir%/texinfo.am
include %reldir%/export-html.am
include %reldir%/export-docbook.am
include %reldir%/org-tangle.am
include %reldir%/org-export-texinfo.am
# export-docbook.am
#
# Copyright (C) 2018 Vivien Kraus <vivien@planete-kraus.eu>
#
# This program is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as