[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 19/33: Build, installation, and distribution of man files
From: |
Bertrand Garrigues |
Subject: |
[groff] 19/33: Build, installation, and distribution of man files |
Date: |
Sun, 07 Sep 2014 23:02:11 +0000 |
bgarrigues pushed a commit to branch automake2
in repository groff.
commit 52ffb0045c58ba0488fafdc98931725e6f4b817f
Author: Bertrand Garrigues <address@hidden>
Date: Wed Sep 3 22:19:11 2014 +0200
Build, installation, and distribution of man files
---
Makefile.am | 3 ++-
TESTS | 4 ++--
configure.ac | 1 +
man/Makefile.sub | 10 ----------
man/man.am | 24 ++++++++++++++++++++++++
5 files changed, 29 insertions(+), 13 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index b7b3eaa..5d71af6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -536,6 +536,7 @@ include $(top_srcdir)/font/devpdf/devpdf.am
include $(top_srcdir)/font/devps/devps.am
include $(top_srcdir)/font/devutf8/devutf8.am
include $(top_srcdir)/font/scripts/scripts.am
+include $(top_srcdir)/man/man.am
include $(top_srcdir)/src/include/include.am
include $(top_srcdir)/src/libs/libbib/libbib.am
include $(top_srcdir)/src/libs/libdriver/libdriver.am
@@ -628,7 +629,7 @@ EXTRA_DIST += \
README.MinGW \
arch/djgpp
-MOSTLYCLEANFILES += $(man1_MANS) $(man5_MANS)
+MOSTLYCLEANFILES += $(man1_MANS) $(man5_MANS) $(man7_MANS)
# Rule to build .man files. The brackets around the @ are used to prevent the
# substitution of the variable by automake.
diff --git a/TESTS b/TESTS
index f7e2709..deee8fc 100644
--- a/TESTS
+++ b/TESTS
@@ -238,8 +238,8 @@ Differences with former build system:
- programs from src/utils are installed in $(DESTDIR)/usr/local/bin
- - man files from src/utils, src/devices are installed in
- $(DESTDIR)/usr/local/share/man/man1 or man5
+ - man files from man, src/utils, src/devices are installed in
+ $(DESTDIR)/usr/local/share/man/man1, man5 and man7
- $(DESTDIR)/usr/local/share/groff/1.22.2/eign (from src/utils/indxbib)
diff --git a/configure.ac b/configure.ac
index 7ceec60..eeeda0e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -85,6 +85,7 @@ GROFF_INSTALL_SH
GROFF_INSTALL_INFO
AC_PROG_INSTALL
AC_PROG_LN_S
+AC_PROG_MKDIR_P
# use a dummy substitution if no csh hack is necessary to avoid errors
# with non-GNU sed programs
diff --git a/man/Makefile.sub b/man/Makefile.sub
deleted file mode 100644
index 86c4aea..0000000
--- a/man/Makefile.sub
+++ /dev/null
@@ -1,10 +0,0 @@
-MAN5=\
- groff_font.n \
- groff_out.n \
- groff_tmac.n
-MAN7=\
- ditroff.n \
- groff_char.n \
- groff_diff.n \
- groff.n \
- roff.n
diff --git a/man/man.am b/man/man.am
new file mode 100644
index 0000000..a240c7b
--- /dev/null
+++ b/man/man.am
@@ -0,0 +1,24 @@
+man5_MANS += \
+ man/groff_font.n \
+ man/groff_out.n \
+ man/groff_tmac.n
+man7_MANS += \
+ man/ditroff.n \
+ man/groff_char.n \
+ man/groff_diff.n \
+ man/groff.n \
+ man/roff.n
+EXTRA_DIST += \
+ man/groff_font.man \
+ man/groff_out.man \
+ man/groff_tmac.man \
+ man/ditroff.man \
+ man/groff_char.man \
+ man/groff_diff.man \
+ man/groff.man \
+ man/roff.man
+
+# Case of out-of-source build: we must create the 'man' directory.
+BUILT_SOURCES += man
+man:
+ $(MKDIR_P) $(top_builddir)/man
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 19/33: Build, installation, and distribution of man files,
Bertrand Garrigues <=