From e9ef60c9d50c9a0ee1483250a51af7f4c5ae0825 Mon Sep 17 00:00:00 2001 From: Bertrand Garrigues Date: Sat, 6 Sep 2014 18:43:28 +0200 Subject: Add various contrib, fix some build rules. Add the following contrib: - contrib/gpinyin - contrib/gperl - contrib/gpinyin - contrib/grap2graph - contrib/pic2graph - contrib/groff_filenames The scripts listed in `bin_SCRIPTS' are now cleaned by `make mostlyclean'. Fix `make clean': it failed if nothing was build previously. --- contrib/grap2graph/Makefile.sub | 46 ---------------------------------------- contrib/grap2graph/grap2graph.am | 31 +++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 46 deletions(-) delete mode 100644 contrib/grap2graph/Makefile.sub create mode 100644 contrib/grap2graph/grap2graph.am (limited to 'contrib/grap2graph') diff --git a/contrib/grap2graph/Makefile.sub b/contrib/grap2graph/Makefile.sub deleted file mode 100644 index 97761fe0d..000000000 --- a/contrib/grap2graph/Makefile.sub +++ /dev/null @@ -1,46 +0,0 @@ -# Copyright (C) 2003-2014 Free Software Foundation, Inc. -# -# This file is part of groff. -# -# groff 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. -# -# groff 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 . -# -# Makefile.sub -# -MAN1=grap2graph.n -MOSTLYCLEANADD=grap2graph -RM=rm -f - -all: grap2graph - -grap2graph: grap2graph.sh - sed -e "s|@g@|$(g)|g" \ - -e "s|@VERSION@|$(version)$(revision)|" \ - -e $(SH_SCRIPT_SED_CMD) $(srcdir)/grap2graph.sh >$@ - chmod +x $@ - -install_data: grap2graph - -test -d $(DESTDIR)$(bindir) || $(mkinstalldirs) $(DESTDIR)$(bindir) - $(RM) $(DESTDIR)$(bindir)/grap2graph - $(INSTALL_SCRIPT) grap2graph $(DESTDIR)$(bindir)/grap2graph - -uninstall_sub: - $(RM) $(DESTDIR)$(bindir)/grap2graph - -######################################################################## -# Emacs settings -######################################################################## -# -# Local Variables: -# mode: makefile -# End: diff --git a/contrib/grap2graph/grap2graph.am b/contrib/grap2graph/grap2graph.am new file mode 100644 index 000000000..3d47da160 --- /dev/null +++ b/contrib/grap2graph/grap2graph.am @@ -0,0 +1,31 @@ +# Copyright (C) 2003-2014 Free Software Foundation, Inc. +# +# This file is part of groff. +# +# groff 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. +# +# groff 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 . +# +# grap2graph.am +# + +grap2graph_srcdir = $(top_srcdir)/contrib/grap2graph +bin_SCRIPTS += grap2graph +man1_MANS += contrib/grap2graph/grap2graph.n +EXTRA_DIST += \ + $(grap2graph_srcdir)/grap2graph.sh \ + $(grap2graph_srcdir)/grap2graph.man +grap2graph: $(grap2graph_srcdir)/grap2graph.sh + sed -e "s|[@]g[@]|$(g)|g" \ + -e "s|[@]VERSION[@]|$(VERSION)|" \ + -e $(SH_SCRIPT_SED_CMD) $(grap2graph_srcdir)/grap2graph.sh >$@ + chmod +x $@ -- cgit v1.2.1