gnuastro-commits
[Top][All Lists]
Advanced

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

[gnuastro-commits] (no subject)


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] (no subject)
Date: Sat, 4 Jun 2016 12:25:07 +0000 (UTC)

branch: master
commit 7f5699cabe7dc417450c16d0ae080c9cf0c294d1
Author: Mohammad Akhlaghi <address@hidden>
Date:   Sat Jun 4 20:34:50 2016 +0900

    man pages built in doc/man
    
    Previously the man page of all the utilities were made (using Help2man)
    within that utility's particular directory. In order to build on multiple
    threads (with `make -jN', N>1), it was then necessary to set the executable
    as a dependency. But that would cause problems with cleaning later, because
    the executable (a built target) was now a dependency of a distributed
    object (the situation is fully explained in the "Errors with distclean"
    section of the Automake manual). To avoid any errors in `make distclean',
    we had to specify the man page as a clean target and thus if a user who was
    building in the source directory would run `make clean' and they didn't
    have Help2man they would loose the man pages (explained in bug #48124).
    
    To fix the problem, building of the man pages of all the utilities is now
    managed by `doc/Makefile.am'. After all, man pages are a form of
    documentation. A `$(top_builddir)/doc/man' directory is built at configure
    time to host the man pages. It already exists and is filled with the man
    pages in the distributed tarball, so there is no problem for a user without
    Help2man.
    
    Previously the call to Help2man had a `-' at the start of the line. This
    was recommended by Help2man (on its main webpage under "Using help2man with
    make"). The reason was that we were using `AC_PATH_PROG' to check for the
    existence of Help2man, so when it wasn't present, the value to the
    `HELP2MAN' variable would become blank and the unreasonable command after
    it would not cause an error in Make. The outcome of all of this were some
    extra lines with an error in them that was ignored in all the `make'
    outputs. This would make the output of `make' very dirty and could cause
    confusion for the users. But now, there is no such problem and a user
    building from the tarball will not see anything about building man pages or
    help2man, or any ignored errors about it.
    
    Besides a cleaner Make output, this process also significantly cleaned the
    `src/*/Makefile.am' files and also removed one extra file from the tarball
    sources for each utility (making it cleaner for an interested person to
    read/inspect).
    
    This fixes bug #48124.
---
 configure.ac                |   12 ++++++++-
 doc/Makefile.am             |   59 ++++++++++++++++++++++++++++++++++++++++++-
 src/arithmetic/Makefile.am  |   22 +---------------
 src/convertt/Makefile.am    |   22 +---------------
 src/convolve/Makefile.am    |   24 +++---------------
 src/cosmiccal/Makefile.am   |   22 +---------------
 src/header/Makefile.am      |   22 +---------------
 src/imgcrop/Makefile.am     |   24 +++---------------
 src/imgstat/Makefile.am     |   22 +---------------
 src/imgwarp/Makefile.am     |   22 +---------------
 src/mkcatalog/Makefile.am   |   22 +---------------
 src/mknoise/Makefile.am     |   22 +---------------
 src/mkprof/Makefile.am      |   24 +++---------------
 src/noisechisel/Makefile.am |   22 +---------------
 src/subtractsky/Makefile.am |   22 +---------------
 15 files changed, 88 insertions(+), 275 deletions(-)

diff --git a/configure.ac b/configure.ac
index 99e46b3..be27df7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -138,7 +138,8 @@ gl_INIT
 
 
 # To add the help2man:
-AC_PATH_PROG(HELP2MAN, help2man)
+AC_CHECK_PROG(has_help2man, help2man, [yes], [no])
+AM_CONDITIONAL([COND_HASHELP2MAN], [test "x$has_help2man" = "xyes"])
 
 
 
@@ -413,6 +414,15 @@ AC_SUBST(GUIDEMESSAGE, [$enable_guide_message])
 
 
 
+# Build the man page directory. Note that this is the cleanest and most
+# portable way of building this directory. We don't want to do it in any of
+# the Makefiles.
+AC_CONFIG_COMMANDS([man page directory], [$MKDIR_P doc/man])
+
+
+
+
+
 # Make the Makefiles:
 AC_OUTPUT
 
diff --git a/doc/Makefile.am b/doc/Makefile.am
index ec24960..e783ddc 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -63,7 +63,64 @@ EXTRA_DIST = genauthors README
 $(srcdir)/authors.texi: $(top_srcdir)/configure
        $(top_srcdir)/doc/genauthors $(top_srcdir)
 
-
 ## Images:
 infognuastrodir=$(infodir)/gnuastro-figures/
 dist_infognuastro_DATA = $(top_srcdir)/doc/gnuastro-figures/*
+
+
+
+
+
+
+
+
+
+
+## Man pages: to keep things managable, sort the utilities alphabetically.
+dist_man_MANS = man/astarithmetic.1 man/astconvertt.1 man/astconvolve.1        
\
+man/astcosmiccal.1 man/astheader.1 man/astimgcrop.1 man/astimgstat.1   \
+man/astimgwarp.1 man/astmkcatalog.1 man/astmknoise.1 man/astmkprof.1   \
+man/astnoisechisel.1 man/astsubtractsky.1
+
+
+## See if help2man is present or not. When help2man doesn't exist, we don't
+## want to overwhelm the user with any commands, so we just let them know
+## that the distributed man pages will be used.
+if COND_HASHELP2MAN
+  MAYBE_HELP2MAN = help2man --output=$@ --source="$(PACKAGE_STRING)"
+else
+  MAYBE_HELP2MAN = @echo "Using distributed man page for"
+endif
+
+
+# Build the `man' directory and then put all the man pages in
+# it. Unfortunately as far as I know, pattern rules are not portable in all
+# implementations of Make, so we have to list all the utilities manually.
+toputildir=$(top_builddir)/src
+ALLMANSDEP = $(top_srcdir)/lib/gnuastro/commonargs.h
+man/astarithmetic.1: $(top_srcdir)/src/arithmetic/args.h  $(ALLMANSDEP)
+       $(MAYBE_HELP2MAN) $(toputildir)/arithmetic/astarithmetic
+man/astconvertt.1: $(top_srcdir)/src/convertt/args.h  $(ALLMANSDEP)
+       $(MAYBE_HELP2MAN) $(toputildir)/convertt/astconvertt
+man/astconvolve.1: $(top_srcdir)/src/convolve/args.h  $(ALLMANSDEP)
+       $(MAYBE_HELP2MAN) $(toputildir)/convolve/astconvolve
+man/astcosmiccal.1: $(top_srcdir)/src/cosmiccal/args.h  $(ALLMANSDEP)
+       $(MAYBE_HELP2MAN) $(toputildir)/cosmiccal/astcosmiccal
+man/astheader.1: $(top_srcdir)/src/header/args.h  $(ALLMANSDEP)
+       $(MAYBE_HELP2MAN) $(toputildir)/header/astheader
+man/astimgcrop.1: $(top_srcdir)/src/imgcrop/args.h  $(ALLMANSDEP)
+       $(MAYBE_HELP2MAN) $(toputildir)/imgcrop/astimgcrop
+man/astimgstat.1: $(top_srcdir)/src/imgstat/args.h  $(ALLMANSDEP)
+       $(MAYBE_HELP2MAN) $(toputildir)/imgstat/astimgstat
+man/astimgwarp.1: $(top_srcdir)/src/imgwarp/args.h  $(ALLMANSDEP)
+       $(MAYBE_HELP2MAN) $(toputildir)/imgwarp/astimgwarp
+man/astmkcatalog.1: $(top_srcdir)/src/mkcatalog/args.h  $(ALLMANSDEP)
+       $(MAYBE_HELP2MAN) $(toputildir)/mkcatalog/astmkcatalog
+man/astmknoise.1: $(top_srcdir)/src/mknoise/args.h  $(ALLMANSDEP)
+       $(MAYBE_HELP2MAN) $(toputildir)/mknoise/astmknoise
+man/astmkprof.1: $(top_srcdir)/src/mkprof/args.h  $(ALLMANSDEP)
+       $(MAYBE_HELP2MAN) $(toputildir)/mkprof/astmkprof
+man/astnoisechisel.1: $(top_srcdir)/src/noisechisel/args.h  $(ALLMANSDEP)
+       $(MAYBE_HELP2MAN) $(toputildir)/noisechisel/astnoisechisel
+man/astsubtractsky.1: $(top_srcdir)/src/subtractsky/args.h  $(ALLMANSDEP)
+       $(MAYBE_HELP2MAN) $(toputildir)/subtractsky/astsubtractsky
diff --git a/src/arithmetic/Makefile.am b/src/arithmetic/Makefile.am
index f0531ad..31e22ae 100644
--- a/src/arithmetic/Makefile.am
+++ b/src/arithmetic/Makefile.am
@@ -37,25 +37,5 @@ astarithmetic_LDADD = 
$(top_builddir)/bootstrapped/lib/libgnu.la     \
 
 
 # To destribute the defaults file.
+# NOTE: the man page is created in doc/Makefile.am
 dist_sysconf_DATA = astarithmetic.conf
-
-
-
-
-
-## Generally for the man pages:
-dist_man_MANS = astarithmetic.1
-
-## Note that in parallel builds, we want to make sure that the man page is
-## only created once the executable is built, so the argument to
-## bin_PROGRAMS is a prerequisite here, the $(EXEEXT) is used in
-## Makefile.in.
-astarithmetic.1: astarithmetic$(EXEEXT) args.h                        \
-                 $(top_srcdir)/lib/gnuastro/commonargs.h
-       -$(HELP2MAN) --output=$@ ./astarithmetic$(EXEEXT)             \
-                     --source="$(PACKAGE_STRING)"
-
-# With the addition of the executable as a dependency for the man page, the
-# (possibly) produced man page will not be cleaned. So we have to ask for
-# its cleaning manually here.
-CLEANFILES = $(builddir)/astarithmetic.1
diff --git a/src/convertt/Makefile.am b/src/convertt/Makefile.am
index fd443a6..d8ad89a 100644
--- a/src/convertt/Makefile.am
+++ b/src/convertt/Makefile.am
@@ -37,25 +37,5 @@ astconvertt_LDADD = 
$(top_builddir)/bootstrapped/lib/libgnu.la               \
 
 
 # To destribute the defaults file.
+# NOTE: the man page is created in doc/Makefile.am
 dist_sysconf_DATA = astconvertt.conf
-
-
-
-
-
-## Generally for the man pages:
-dist_man_MANS = astconvertt.1
-
-## Note that in parallel builds, we want to make sure that the man page is
-## only created once the executable is built, so the argument to
-## bin_PROGRAMS is a prerequisite here, the $(EXEEXT) is used in
-## Makefile.in.
-astconvertt.1: astconvertt$(EXEEXT) args.h                             \
-               $(top_srcdir)/lib/gnuastro/commonargs.h
-       -$(HELP2MAN) --output=$@ ./astconvertt$(EXEEXT)                \
-                    --source="$(PACKAGE_STRING)"
-
-# With the addition of the executable as a dependency for the man page, the
-# (possibly) produced man page will not be cleaned. So we have to ask for
-# its cleaning manually here.
-CLEANFILES = $(builddir)/astconvertt.1
diff --git a/src/convolve/Makefile.am b/src/convolve/Makefile.am
index 5b70f21..a747207 100644
--- a/src/convolve/Makefile.am
+++ b/src/convolve/Makefile.am
@@ -35,26 +35,8 @@ astconvolve_LDADD = 
$(top_builddir)/bootstrapped/lib/libgnu.la                  \
 
 
 
-# To destribute the defaults file.
-dist_sysconf_DATA = astconvolve.conf
-
-
-
 
 
-## Generally for the man pages:
-dist_man_MANS = astconvolve.1
-
-## Note that in parallel builds, we want to make sure that the man page is
-## only created once the executable is built, so the argument to
-## bin_PROGRAMS is a prerequisite here, the $(EXEEXT) is used in
-## Makefile.in.
-astconvolve.1: astconvolve$(EXEEXT) args.h                             \
-               $(top_srcdir)/lib/gnuastro/commonargs.h
-       -$(HELP2MAN) --output=$@ ./astconvolve$(EXEEXT)                \
-                    --source="$(PACKAGE_STRING)"
-
-# With the addition of the executable as a dependency for the man page, the
-# (possibly) produced man page will not be cleaned. So we have to ask for
-# its cleaning manually here.
-CLEANFILES = $(builddir)/astconvolve.1
+# To destribute the defaults file.
+# NOTE: the man page is created in doc/Makefile.am
+dist_sysconf_DATA = astconvolve.conf
diff --git a/src/cosmiccal/Makefile.am b/src/cosmiccal/Makefile.am
index 2bcb9eb..3f0e51c 100644
--- a/src/cosmiccal/Makefile.am
+++ b/src/cosmiccal/Makefile.am
@@ -36,25 +36,5 @@ astcosmiccal_LDADD = 
$(top_builddir)/bootstrapped/lib/libgnu.la              \
 
 
 # To destribute the defaults file.
+# NOTE: the man page is created in doc/Makefile.am
 dist_sysconf_DATA = astcosmiccal.conf
-
-
-
-
-
-## Generally for the man pages:
-dist_man_MANS = astcosmiccal.1
-
-## Note that in parallel builds, we want to make sure that the man page is
-## only created once the executable is built, so the argument to
-## bin_PROGRAMS is a prerequisite here, the $(EXEEXT) is used in
-## Makefile.in.
-astcosmiccal.1: astcosmiccal$(EXEEXT) args.h                          \
-                $(top_srcdir)/lib/gnuastro/commonargs.h
-       -$(HELP2MAN) --output=$@ ./astcosmiccal$(EXEEXT)              \
-                    --source="$(PACKAGE_STRING)"
-
-# With the addition of the executable as a dependency for the man page, the
-# (possibly) produced man page will not be cleaned. So we have to ask for
-# its cleaning manually here.
-CLEANFILES = $(builddir)/astcosmiccal.1
diff --git a/src/header/Makefile.am b/src/header/Makefile.am
index 35a5c96..ba27129 100644
--- a/src/header/Makefile.am
+++ b/src/header/Makefile.am
@@ -36,25 +36,5 @@ astheader_LDADD = $(top_builddir)/bootstrapped/lib/libgnu.la 
        \
 
 
 # To destribute the defaults file.
+# NOTE: the man page is created in doc/Makefile.am
 dist_sysconf_DATA = astheader.conf
-
-
-
-
-
-## Generally for the man pages:
-dist_man_MANS = astheader.1
-
-## Note that in parallel builds, we want to make sure that the man page is
-## only created once the executable is built, so the argument to
-## bin_PROGRAMS is a prerequisite here, the $(EXEEXT) is used in
-## Makefile.in.
-astheader.1: astheader$(EXEEXT) args.h                                \
-             $(top_srcdir)/lib/gnuastro/commonargs.h
-       -$(HELP2MAN) --output=$@ ./astheader$(EXEEXT)                 \
-                    --source="$(PACKAGE_STRING)"
-
-# With the addition of the executable as a dependency for the man page, the
-# (possibly) produced man page will not be cleaned. So we have to ask for
-# its cleaning manually here.
-CLEANFILES = $(builddir)/astheader.1
diff --git a/src/imgcrop/Makefile.am b/src/imgcrop/Makefile.am
index ff34ff4..136f102 100644
--- a/src/imgcrop/Makefile.am
+++ b/src/imgcrop/Makefile.am
@@ -34,26 +34,8 @@ astimgcrop_LDADD = 
$(top_builddir)/bootstrapped/lib/libgnu.la        \
 
 
 
-# To destribute the defaults file.
-dist_sysconf_DATA = astimgcrop.conf
-
-
-
 
 
-## Generally for the man pages:
-dist_man_MANS = astimgcrop.1
-
-## Note that in parallel builds, we want to make sure that the man page is
-## only created once the executable is built, so the argument to
-## bin_PROGRAMS is a prerequisite here, the $(EXEEXT) is used in
-## Makefile.in.
-astimgcrop.1: astimgcrop$(EXEEXT) args.h                              \
-              $(top_srcdir)/lib/gnuastro/commonargs.h
-       -$(HELP2MAN) --output=$@ ./astimgcrop$(EXEEXT)                \
-                     --source="$(PACKAGE_STRING)"
-
-# With the addition of the executable as a dependency for the man page, the
-# (possibly) produced man page will not be cleaned. So we have to ask for
-# its cleaning manually here.
-CLEANFILES = $(builddir)/astimgcrop.1
+# To destribute the defaults file.
+# NOTE: the man page is created in doc/Makefile.ma
+dist_sysconf_DATA = astimgcrop.conf
diff --git a/src/imgstat/Makefile.am b/src/imgstat/Makefile.am
index 7f380cd..cb6d747 100644
--- a/src/imgstat/Makefile.am
+++ b/src/imgstat/Makefile.am
@@ -37,25 +37,5 @@ astimgstat_LDADD = 
$(top_builddir)/bootstrapped/lib/libgnu.la                \
 
 
 # To destribute the defaults file.
+# NOTE: the man page is created in doc/Makefile.am
 dist_sysconf_DATA = astimgstat.conf
-
-
-
-
-
-## Generally for the man pages:
-dist_man_MANS = astimgstat.1
-
-## Note that in parallel builds, we want to make sure that the man page is
-## only created once the executable is built, so the argument to
-## bin_PROGRAMS is a prerequisite here, the $(EXEEXT) is used in
-## Makefile.in.
-astimgstat.1: astimgstat$(EXEEXT) args.h                              \
-              $(top_srcdir)/lib/gnuastro/commonargs.h
-       -$(HELP2MAN) --output=$@ ./astimgstat$(EXEEXT)                \
-                    --source="$(PACKAGE_STRING)"
-
-# With the addition of the executable as a dependency for the man page, the
-# (possibly) produced man page will not be cleaned. So we have to ask for
-# its cleaning manually here.
-CLEANFILES = $(builddir)/astimgstat.1
diff --git a/src/imgwarp/Makefile.am b/src/imgwarp/Makefile.am
index 80f7ac3..96de79f 100644
--- a/src/imgwarp/Makefile.am
+++ b/src/imgwarp/Makefile.am
@@ -37,25 +37,5 @@ astimgwarp_LDADD = 
$(top_builddir)/bootstrapped/lib/libgnu.la                \
 
 
 # To destribute the defaults file.
+# NOTE: the man page is created in doc/Makefile.am
 dist_sysconf_DATA = astimgwarp.conf
-
-
-
-
-
-## Generally for the man pages:
-dist_man_MANS = astimgwarp.1
-
-## Note that in parallel builds, we want to make sure that the man page is
-## only created once the executable is built, so the argument to
-## bin_PROGRAMS is a prerequisite here, the $(EXEEXT) is used in
-## Makefile.in.
-astimgwarp.1: astimgwarp$(EXEEXT) args.h                              \
-              $(top_srcdir)/lib/gnuastro/commonargs.h
-       -$(HELP2MAN) --output=$@ ./astimgwarp$(EXEEXT)                \
-                    --source="$(PACKAGE_STRING)"
-
-# With the addition of the executable as a dependency for the man page, the
-# (possibly) produced man page will not be cleaned. So we have to ask for
-# its cleaning manually here.
-CLEANFILES = $(builddir)/astimgwarp.1
diff --git a/src/mkcatalog/Makefile.am b/src/mkcatalog/Makefile.am
index c2fd8ed..2f96074 100644
--- a/src/mkcatalog/Makefile.am
+++ b/src/mkcatalog/Makefile.am
@@ -37,25 +37,5 @@ astmkcatalog_LDADD = 
$(top_builddir)/bootstrapped/lib/libgnu.la      \
 
 
 # To destribute the defaults file.
+# NOTE: the man page is created in doc/Makefile.am
 dist_sysconf_DATA = astmkcatalog.conf
-
-
-
-
-
-## Generally for the man pages:
-dist_man_MANS = astmkcatalog.1
-
-## Note that in parallel builds, we want to make sure that the man page is
-## only created once the executable is built, so the argument to
-## bin_PROGRAMS is a prerequisite here, the $(EXEEXT) is used in
-## Makefile.in.
-astmkcatalog.1: astmkcatalog$(EXEEXT) args.h                        \
-                $(top_srcdir)/lib/gnuastro/commonargs.h
-       -$(HELP2MAN) --output=$@ ./astmkcatalog$(EXEEXT)            \
-                    --source="$(PACKAGE_STRING)"
-
-# With the addition of the executable as a dependency for the man page, the
-# (possibly) produced man page will not be cleaned. So we have to ask for
-# its cleaning manually here.
-CLEANFILES = $(builddir)/astmkcatalog.1
diff --git a/src/mknoise/Makefile.am b/src/mknoise/Makefile.am
index e79b161..8158e1e 100644
--- a/src/mknoise/Makefile.am
+++ b/src/mknoise/Makefile.am
@@ -36,25 +36,5 @@ astmknoise_LDADD = 
$(top_builddir)/bootstrapped/lib/libgnu.la                \
 
 
 # To destribute the defaults file.
+# NOTE: the man page is created in doc/Makefile.am
 dist_sysconf_DATA = astmknoise.conf
-
-
-
-
-
-## Generally for the man pages:
-dist_man_MANS = astmknoise.1
-
-## Note that in parallel builds, we want to make sure that the man page is
-## only created once the executable is built, so the argument to
-## bin_PROGRAMS is a prerequisite here, the $(EXEEXT) is used in
-## Makefile.in.
-astmknoise.1: astmknoise$(EXEEXT) args.h                            \
-              $(top_srcdir)/lib/gnuastro/commonargs.h
-       -$(HELP2MAN) --output=$@ ./astmknoise$(EXEEXT)              \
-                    --source="$(PACKAGE_STRING)"
-
-# With the addition of the executable as a dependency for the man page, the
-# (possibly) produced man page will not be cleaned. So we have to ask for
-# its cleaning manually here.
-CLEANFILES = $(builddir)/astmknoise.1
diff --git a/src/mkprof/Makefile.am b/src/mkprof/Makefile.am
index c7839e9..7ba9815 100644
--- a/src/mkprof/Makefile.am
+++ b/src/mkprof/Makefile.am
@@ -35,26 +35,8 @@ astmkprof_LDADD = $(top_builddir)/bootstrapped/lib/libgnu.la 
        \
 
 
 
-# To destribute the defaults file.
-dist_sysconf_DATA = astmkprof.conf
-
-
-
 
 
-## Generally for the man pages:
-dist_man_MANS = astmkprof.1
-
-## Note that in parallel builds, we want to make sure that the man page is
-## only created once the executable is built, so the argument to
-## bin_PROGRAMS is a prerequisite here, the $(EXEEXT) is used in
-## Makefile.in.
-astmkprof.1: astmkprof$(EXEEXT) args.h                                \
-             $(top_srcdir)/lib/gnuastro/commonargs.h
-       -$(HELP2MAN) --output=$@ ./astmkprof$(EXEEXT)                 \
-                    --source="$(PACKAGE_STRING)"
-
-# With the addition of the executable as a dependency for the man page, the
-# (possibly) produced man page will not be cleaned. So we have to ask for
-# its cleaning manually here.
-CLEANFILES = $(builddir)/astmkprof.1
+# To destribute the defaults file.
+# NOTE: the man page is created in doc/Makefile.am
+dist_sysconf_DATA = astmkprof.conf
diff --git a/src/noisechisel/Makefile.am b/src/noisechisel/Makefile.am
index d8e3143..211f6c4 100644
--- a/src/noisechisel/Makefile.am
+++ b/src/noisechisel/Makefile.am
@@ -40,25 +40,5 @@ astnoisechisel_LDADD = 
$(top_builddir)/bootstrapped/lib/libgnu.la    \
 
 
 # To destribute the defaults file.
+# NOTE: the man page is created in doc/Makefile.am
 dist_sysconf_DATA = astnoisechisel.conf
-
-
-
-
-
-## Generally for the man pages:
-dist_man_MANS = astnoisechisel.1
-
-## Note that in parallel builds, we want to make sure that the man page is
-## only created once the executable is built, so the argument to
-## bin_PROGRAMS is a prerequisite here, the $(EXEEXT) is used in
-## Makefile.in.
-astnoisechisel.1: astnoisechisel$(EXEEXT) args.h                        \
-                  $(top_srcdir)/lib/gnuastro/commonargs.h
-       -$(HELP2MAN) --output=$@ ./astnoisechisel$(EXEEXT)              \
-                    --source="$(PACKAGE_STRING)"
-
-# With the addition of the executable as a dependency for the man page, the
-# (possibly) produced man page will not be cleaned. So we have to ask for
-# its cleaning manually here.
-CLEANFILES = $(builddir)/astnoisechisel.1
diff --git a/src/subtractsky/Makefile.am b/src/subtractsky/Makefile.am
index 8d3935c..94c7f36 100644
--- a/src/subtractsky/Makefile.am
+++ b/src/subtractsky/Makefile.am
@@ -38,25 +38,5 @@ astsubtractsky_LDADD = 
$(top_builddir)/bootstrapped/lib/libgnu.la    \
 
 
 # To destribute the defaults file.
+# NOTE: the man page is created in doc/Makefile.am
 dist_sysconf_DATA = astsubtractsky.conf
-
-
-
-
-
-## Generally for the man pages:
-dist_man_MANS = astsubtractsky.1
-
-## Note that in parallel builds, we want to make sure that the man page is
-## only created once the executable is built, so the argument to
-## bin_PROGRAMS is a prerequisite here, the $(EXEEXT) is used in
-## Makefile.in.
-astsubtractsky.1: astsubtractsky$(EXEEXT) args.h                       \
-                  $(top_srcdir)/lib/gnuastro/commonargs.h
-       -$(HELP2MAN) --output=$@ ./astsubtractsky$(EXEEXT)             \
-                    --source="$(PACKAGE_STRING)"
-
-# With the addition of the executable as a dependency for the man page, the
-# (possibly) produced man page will not be cleaned. So we have to ask for
-# its cleaning manually here.
-CLEANFILES = $(builddir)/astsubtractsky.1



reply via email to

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