[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 29/45: Add contrib/mm
From: |
Bertrand Garrigues |
Subject: |
[groff] 29/45: Add contrib/mm |
Date: |
Tue, 11 Nov 2014 21:25:58 +0000 |
bgarrigues pushed a commit to branch automake3
in repository groff.
commit 7e18b952f343e1f3f19be83caea70a681c597b9f
Author: Bertrand Garrigues <address@hidden>
Date: Sun Sep 7 15:55:53 2014 +0200
Add contrib/mm
---
Makefile.am | 1 +
contrib/mm/Makefile.sub | 95 ------------------------------------------
contrib/mm/mm.am | 106 +++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 107 insertions(+), 95 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index a756dc8..c96416f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -556,6 +556,7 @@ include $(top_srcdir)/contrib/grap2graph/grap2graph.am
include $(top_srcdir)/contrib/groff_filenames/groff_filenames.am
include $(top_srcdir)/contrib/groffer/groffer.am
include $(top_srcdir)/contrib/hdtbl/hdtbl.am
+include $(top_srcdir)/contrib/mm/mm.am
include $(top_srcdir)/contrib/pic2graph/pic2graph.am
include $(top_srcdir)/font/devX100/devX100.am
include $(top_srcdir)/font/devX100-12/devX100-12.am
diff --git a/contrib/mm/Makefile.sub b/contrib/mm/Makefile.sub
deleted file mode 100644
index d40eafd..0000000
--- a/contrib/mm/Makefile.sub
+++ /dev/null
@@ -1,95 +0,0 @@
-# Copyright 1991-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 <http://www.gnu.org/licenses/>.
-#
-# Makefile.sub
-#
-#
-PROG=mmroff
-MAN1=\
- mmroff.n
-MAN7=\
- groff_mm.n \
- groff_mmse.n
-FILES=0.MT 5.MT 4.MT ms.cov se_ms.cov
-# Local configuration files with default values.
-LOCALE=locale se_locale
-MOSTLYCLEANADD=temp
-RM=rm -f
-
-all: mmroff
-
-install_bin: install_mmroff
-
-install_data: install_m
- -test -d $(DESTDIR)$(tmacdir)/mm \
- || $(mkinstalldirs) $(DESTDIR)$(tmacdir)/mm
- for f in $(FILES); do \
- $(RM) $(DESTDIR)$(tmacdir)/mm/$$f; \
- $(INSTALL_DATA) $(srcdir)/mm/$$f $(DESTDIR)$(tmacdir)/mm/$$f; \
- done
- for f in $(LOCALE); do \
- test -f $(DESTDIR)$(tmacdir)/mm/$$f \
- || touch $(DESTDIR)$(tmacdir)/mm/$$f; \
- done
- $(INSTALL_DATA) $(srcdir)/refer-mm.tmac \
- $(DESTDIR)$(tmacdir)/refer-mm.tmac
-
-install_m:
- -test -d $(DESTDIR)$(tmacdir) || $(mkinstalldirs) $(DESTDIR)$(tmacdir)
- $(RM) $(DESTDIR)$(tmacdir)/tmac.$(tmac_m_prefix)m
- $(RM) $(DESTDIR)$(tmacdir)/$(tmac_m_prefix)m.tmac
- $(INSTALL_DATA) $(srcdir)/m.tmac \
- $(DESTDIR)$(tmacdir)/$(tmac_m_prefix)m.tmac
- @sed -e "s;^.mso m.tmac;.mso $(tmac_m_prefix)m.tmac;g" \
- $(srcdir)/mse.tmac > $(DESTDIR)$(tmacdir)/$(tmac_m_prefix)mse.tmac
- @sed -e "s;^.mso mse.tmac;.mso $(tmac_m_prefix)mse.tmac;g" \
- $(srcdir)/mmse.tmac > $(DESTDIR)$(tmacdir)/$(tmac_m_prefix)mmse.tmac
- @sed -e "s;^.mso m.tmac;.mso $(tmac_m_prefix)m.tmac;g" \
- $(srcdir)/mm.tmac > $(DESTDIR)$(tmacdir)/$(tmac_m_prefix)mm.tmac
-
-install_mmroff: mmroff
- -test -d $(DESTDIR)$(bindir) || $(mkinstalldirs) $(DESTDIR)$(bindir)
- $(RM) $(DESTDIR)$(bindir)/mmroff
- $(INSTALL_SCRIPT) mmroff $(DESTDIR)$(bindir)/mmroff
-
-mmroff: mmroff.pl
- sed -e 's;/usr/bin/perl;$(PERL);' $(srcdir)/mmroff.pl >$@
- chmod +x $@
-
-uninstall_sub:
- -for f in $(FILES); do $(RM) $(DESTDIR)$(tmacdir)/mm/$$f; done
- -for f in $(LOCALE); do \
- test -s $(DESTDIR)$(tmacdir)/mm/$$f \
- || $(RM) $(DESTDIR)$(tmacdir)/mm/$$f; \
- done
- $(RM) $(DESTDIR)$(tmacdir)/tmac.$(tmac_m_prefix)m
- $(RM) $(DESTDIR)$(tmacdir)/$(tmac_m_prefix)m.tmac
- $(RM) $(DESTDIR)$(tmacdir)/$(tmac_m_prefix)mm.tmac
- $(RM) $(DESTDIR)$(tmacdir)/$(tmac_m_prefix)mse.tmac
- $(RM) $(DESTDIR)$(tmacdir)/$(tmac_m_prefix)mmse.tmac
- $(RM) $(DESTDIR)$(tmacdir)/refer-mm.tmac
- -test -d $(DESTDIR)$(tmacdir)/mm && \
- rmdir $(DESTDIR)$(tmacdir)/mm
- $(RM) $(DESTDIR)$(bindir)/mmroff
-
-########################################################################
-# Emacs settings
-########################################################################
-#
-# Local Variables:
-# mode: makefile
-# End:
diff --git a/contrib/mm/mm.am b/contrib/mm/mm.am
new file mode 100644
index 0000000..6a72493
--- /dev/null
+++ b/contrib/mm/mm.am
@@ -0,0 +1,106 @@
+# Copyright 1991-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 <http://www.gnu.org/licenses/>.
+#
+# mm.am
+#
+
+mm_srcdir = $(top_srcdir)/contrib/mm
+mm_builddir = $(top_builddir)/contrib/mm
+
+bin_SCRIPTS += mmroff
+
+man1_MANS += contrib/mm/mmroff.n
+man7_MANS += \
+ contrib/mm/groff_mm.n \
+ contrib/mm/groff_mmse.n
+
+# Files installed in $(tmacdir)/mm
+MMFILES = \
+ contrib/mm/mm/0.MT \
+ contrib/mm/mm/5.MT \
+ contrib/mm/mm/4.MT \
+ contrib/mm/mm/ms.cov \
+ contrib/mm/mm/se_ms.cov
+mmdir = $(tmacdir)/mm
+dist_mm_DATA = $(MMFILES)
+
+# Files installed in $(tmacdir)
+tmacmmdir = $(tmacdir)
+dist_tmacmm_DATA = contrib/mm/refer-mm.tmac
+
+# Local configuration files with default values.
+MMLOCALE = \
+ locale \
+ se_locale
+
+EXTRA_DIST += \
+ contrib/mm/ChangeLog \
+ contrib/mm/examples \
+ contrib/mm/Makefile.sim \
+ contrib/mm/mm \
+ contrib/mm/NOTES \
+ contrib/mm/README \
+ contrib/mm/groff_mm.man \
+ contrib/mm/groff_mmse.man \
+ contrib/mm/mmroff.man \
+ contrib/mm/mmroff.pl
+
+mmroff: $(mm_srcdir)/mmroff.pl
+ sed -e 's;/usr/bin/perl;$(PERL);' $(mm_srcdir)/mmroff.pl >$@
+ chmod +x $@
+
+# Special installation rules for m.tmac, mse.tmac, mmse.tmac, mm.tmac
+# and MMLOCALE
+install-data-local: install_mm
+install_mm:
+ -test -d $(DESTDIR)$(tmacdir) || $(mkinstalldirs) $(DESTDIR)$(tmacdir)
+ -test -d $(DESTDIR)$(mmdir) || $(mkinstalldirs) $(DESTDIR)$(mmdir)
+ $(RM) $(DESTDIR)$(tmacdir)/tmac.$(tmac_m_prefix)m
+ $(RM) $(DESTDIR)$(tmacdir)/$(tmac_m_prefix)m.tmac
+ $(INSTALL_DATA) $(mm_srcdir)/m.tmac \
+ $(DESTDIR)$(tmacdir)/$(tmac_m_prefix)m.tmac
+ sed -e "s;^.mso m.tmac;.mso $(tmac_m_prefix)m.tmac;g" \
+ $(mm_srcdir)/mse.tmac > $(DESTDIR)$(tmacdir)/$(tmac_m_prefix)mse.tmac
+ @sed -e "s;^.mso mse.tmac;.mso $(tmac_m_prefix)mse.tmac;g" \
+ $(mm_srcdir)/mmse.tmac >
$(DESTDIR)$(tmacdir)/$(tmac_m_prefix)mmse.tmac
+ @sed -e "s;^.mso m.tmac;.mso $(tmac_m_prefix)m.tmac;g" \
+ $(mm_srcdir)/mm.tmac > $(DESTDIR)$(tmacdir)/$(tmac_m_prefix)mm.tmac
+ @for f in $(MMLOCALE); do \
+ test -f $(DESTDIR)$(tmacdir)/mm/$$f \
+ || touch $(DESTDIR)$(tmacdir)/mm/$$f; \
+ done
+uninstall-local: uninstall_mm
+uninstall_mm:
+ -for f in $(MMLOCALE); do \
+ test -s $(DESTDIR)$(tmacdir)/mm/$$f \
+ || $(RM) $(DESTDIR)$(tmacdir)/mm/$$f; \
+ done
+ $(RM) $(DESTDIR)$(tmacdir)/tmac.$(tmac_m_prefix)m
+ $(RM) $(DESTDIR)$(tmacdir)/$(tmac_m_prefix)m.tmac
+ $(RM) $(DESTDIR)$(tmacdir)/$(tmac_m_prefix)mm.tmac
+ $(RM) $(DESTDIR)$(tmacdir)/$(tmac_m_prefix)mse.tmac
+ $(RM) $(DESTDIR)$(tmacdir)/$(tmac_m_prefix)mmse.tmac
+ -rmdir $(DESTDIR)$(tmacdir)/mm
+
+# Special distribution rule: we copy all .tmac files from contrib/mm
+dist-hook: dist_mm
+dist_mm:
+ chmod u+w $(distdir)/contrib/mm/
+ for i in $(mm_srcdir)/*.tmac; do \
+ cp -f $$i $(distdir)/contrib/mm/; \
+ done
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 29/45: Add contrib/mm,
Bertrand Garrigues <=