groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 22/46: Add contrib/eqn2graph


From: Bertrand Garrigues
Subject: [groff] 22/46: Add contrib/eqn2graph
Date: Sun, 05 Oct 2014 22:30:58 +0000

bgarrigues pushed a commit to branch automake3
in repository groff.

commit 633452dc9dca8fc78bb89912cac784317e71d21e
Author: Bertrand Garrigues <address@hidden>
Date:   Sat Sep 6 13:52:31 2014 +0200

    Add contrib/eqn2graph
---
 Makefile.am                                      |    1 +
 TESTS                                            |   10 +++--
 contrib/eqn2graph/{Makefile.sub => eqn2graph.am} |   38 +++++++--------------
 3 files changed, 20 insertions(+), 29 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 7b4cf90..a41fcf7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -522,6 +522,7 @@ AM_YFLAGS = -d -v
 include $(top_srcdir)/lib/gnulib.mk
 include $(top_srcdir)/arch/misc/misc.am
 include $(top_srcdir)/contrib/chem/chem.am
+include $(top_srcdir)/contrib/eqn2graph/eqn2graph.am
 include $(top_srcdir)/font/devX100/devX100.am
 include $(top_srcdir)/font/devX100-12/devX100-12.am
 include $(top_srcdir)/font/devX75/devX75.am
diff --git a/TESTS b/TESTS
index fddcdaf..5cd65f7 100644
--- a/TESTS
+++ b/TESTS
@@ -20,7 +20,7 @@ Current status
   - Build font/*
   - man files from 'man' directory installed
   - tmac files from 'tmac' directory installed
-  - Build and installation of contrib/chem
+  - Build and installation of contrib/chem, contrib/eqn2graph
 
 Tests
 -----
@@ -40,7 +40,7 @@ Generated the following files and directories:
   lib/
   src/include/config.hin
 
-2. Build of various targets
+2. Tests of various targets
 
 Tests done in 2 configurations:
 
@@ -137,6 +137,9 @@ from font: font files in
 from contrib/chem:
   - `chem' script and 3 README files
 
+from contrib/eqn2graph:
+  - `eqn2graph' script
+
 In order to check and improve the dependencies, the following targets
 were built from a clean environment:
   - make lib/libgnu.a
@@ -175,6 +178,7 @@ were built from a clean environment:
   - make nroff
   - make troff
   - make chem
+  - make eqn2graph
 
 2.2 make clean
 
@@ -330,8 +334,6 @@ TODO:
   - Missing files/directories (TODO):
     contrib/
     doc/
-    man/
-    tmac
     test-groff.in
 
   - Files/directories not present in the git tree that are
diff --git a/contrib/eqn2graph/Makefile.sub b/contrib/eqn2graph/eqn2graph.am
similarity index 51%
rename from contrib/eqn2graph/Makefile.sub
rename to contrib/eqn2graph/eqn2graph.am
index 8f3a4b7..2dd5339 100644
--- a/contrib/eqn2graph/Makefile.sub
+++ b/contrib/eqn2graph/eqn2graph.am
@@ -16,32 +16,20 @@
 # You should have received a copy of the GNU General Public License
 # along with this program. If not, see <http://www.gnu.org/licenses/>.
 #
-# Makefile.sub
+# eqn2graph.am
 #
-MAN1=eqn2graph.n
-MOSTLYCLEANADD=eqn2graph
-RM=rm -f
 
-all: eqn2graph
+eqn2graph_srcdir = $(top_srcdir)/contrib/eqn2graph
+bin_SCRIPTS += eqn2graph
+man1_MANS += contrib/eqn2graph/eqn2graph.n
+EXTRA_DIST += \
+  contrib/eqn2graph/eqn2graph.man \
+  contrib/eqn2graph/eqn2graph.sh
 
-eqn2graph: eqn2graph.sh
-       sed -e "s|@g@|$(g)|g" \
-           -e "s|@VERSION@|$(version)$(revision)|" \
-           -e $(SH_SCRIPT_SED_CMD) $(srcdir)/eqn2graph.sh >$@
-       chmod +x $@
-
-install_data: eqn2graph
-       -test -d $(DESTDIR)$(bindir) || $(mkinstalldirs) $(DESTDIR)$(bindir)
-       $(RM) $(DESTDIR)$(bindir)/eqn2graph
-       $(INSTALL_SCRIPT) eqn2graph $(DESTDIR)$(bindir)/eqn2graph
-
-uninstall_sub:
-       $(RM) $(DESTDIR)$(bindir)/eqn2graph
+MOSTLYCLEANFILES += eqn2graph
 
-########################################################################
-# Emacs settings
-########################################################################
-#
-# Local Variables:
-# mode: makefile
-# End:
+eqn2graph: $(top_srcdir)/contrib/eqn2graph/eqn2graph.sh
+       sed -e "s|address@hidden@]|$(g)|g" \
+           -e "s|address@hidden@]|$(VERSION)|" \
+           -e $(SH_SCRIPT_SED_CMD) $(eqn2graph_srcdir)/eqn2graph.sh >$@
+       chmod +x $@



reply via email to

[Prev in Thread] Current Thread [Next in Thread]