From 587d22e2b256067c754107df904a6536091dab2f Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Thu, 18 Dec 2014 16:26:02 -0500 Subject: [PATCH] GNU autotools, including doc build --- .gitignore | 15 +++++++++++++++ Makefile.am | 40 ++++++++++++++++++++++++++++++++++++++++ configure.ac | 28 ++++++++++++++++++++++++++++ 3 files changed, 83 insertions(+) create mode 100644 Makefile.am create mode 100644 configure.ac diff --git a/.gitignore b/.gitignore index 81a9a69..30eab36 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,18 @@ /test/index.html /test/**/xspec/ *.apply +*.info + +# autotools- and configure-generated +Makefile.in +Makefile +/aclocal.m4 +/*.cache/ +/configure +/config.* + +# should be added using autoreconf -i +/tools/install-sh +/tools/missing +/tools/mdate-sh +/tools/texinfo.tex diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..cabdab3 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,40 @@ +## hoxsl Makefile +# +# Copyright (C) 2014 LoVullo Associates, Inc. +# +# 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 . +## + +SUBDIRS = doc + +path_src := src +path_test := test + +test_apply := $(path_test)/apply/partial-test.xsl.apply \ + $(path_test)/apply/thrush-test.xsl.apply \ + $(path_test)/transform/apply-gen-test-in.xsl.apply + +.PHONY: check test + +test: check +check: $(test_apply) + $(path_test)/runner + +%.apply: % + $(JAVA) -jar "$(SAXON_CP)" \ + -xsl:"$(path_src)/transform/apply-gen.xsl" \ + "$<" > "$@" + +clean: + $(RM) "$(test_in_apply_gen)" diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..d6ccf25 --- /dev/null +++ b/configure.ac @@ -0,0 +1,28 @@ +# For use by automake and autoconf +# +# Copyright (C) 2014 LoVullo Associates, Inc. +# +# 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 . +## + +AC_INIT([hoxsl], [0.0.1-alpha], [dev@lovullo.com]) +AC_CONFIG_AUX_DIR([tools]) +AM_INIT_AUTOMAKE([foreign]) + +AC_ARG_VAR([JAVA], [The Java executable]) +AC_CHECK_PROGS(JAVA, [java]) + +AC_CONFIG_FILES([Makefile doc/Makefile]) + +AC_OUTPUT