automake-patches
[Top][All Lists]
Advanced

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

FYI: support for `make ps'


From: Alexandre Duret-Lutz
Subject: FYI: support for `make ps'
Date: 26 Jun 2002 21:12:42 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

I'm checking in this (on HEAD).  This adds support for `make ps'.
It didn't make much sense to handle `make dvi' and `make pdf'
without supporting `make ps'.

2002-06-26  Alexandre Duret-Lutz  <address@hidden>

        * automake.in (required_targets): Add ps and ps-am.
        (initialize_per_input): Reset them.
        (handle_texinfo_helper): Fill @pss_list, and define the
        PSS make variable.
        * lib/am/texinfos.am (RECURSIVE_TARGETS): Add ps-recursive.
        (ps, ps-am): New targets.
        * automake.texi (Auxiliary Programs) <texinfo.tex>: Mention
        `make ps' and `make pdf'.
        (Texinfo): Document `make ps', `make pdf', and `make dvi'.
        (Extending): The `ps' and `pdf' targets support a `-local' version.

Index: NEWS
===================================================================
RCS file: /cvs/automake/automake/NEWS,v
retrieving revision 1.181
diff -u -r1.181 NEWS
--- NEWS        17 Jun 2002 12:20:16 -0000      1.181
+++ NEWS        26 Jun 2002 19:08:11 -0000
@@ -1,7 +1,7 @@
 New in 1.6a:
 * A new option, std-options, tests that programs support --help and --version
   when `make installcheck' is run.  This is enabled by --gnits.
-* PDF files are generated by Automake
+* Texinfo rules now support the `ps' and `pdf' targets.
 * `make distcheck' will enforce DESTDIR support by attempting
   a DESTDIR install.
 * `+=' can be used in conditionals, even if the augmented variable
Index: automake.in
===================================================================
RCS file: /cvs/automake/automake/automake.in,v
retrieving revision 1.1309
diff -u -r1.1309 automake.in
--- automake.in 21 Jun 2002 20:24:29 -0000      1.1309
+++ automake.in 26 Jun 2002 19:08:31 -0000
@@ -387,6 +387,7 @@
    'all'          => 1,
    'dvi'         => 1,
    'pdf'         => 1,
+   'ps'                  => 1,
    'info'        => 1,
    'install-info' => 1,
    'install'      => 1,
@@ -399,6 +400,7 @@
    # targets will run them anyway...
    'dvi-am'          => 1,
    'pdf-am'          => 1,
+   'ps-am'           => 1,
    'info-am'         => 1,
    'install-data-am' => 1,
    'install-exec-am' => 1,
@@ -673,6 +675,8 @@
        'dvi-am'   => [],
        'pdf'      => [],
        'pdf-am'   => [],
+       'ps'       => [],
+       'ps-am'    => [],
        'info'     => [],
        'info-am'  => [],
 
@@ -3210,7 +3214,7 @@
 
     my @texis = &variable_value_as_list_recursive ('info_TEXINFOS', 'all');
 
-    my (@info_deps_list, @dvis_list, @pdfs_list, @texi_deps);
+    my (@info_deps_list, @dvis_list, @pdfs_list, @pss_list, @texi_deps);
     my %versions;
     my $done = 0;
     my @texi_cleans;
@@ -3304,6 +3308,7 @@
        push (@info_deps_list, $out_file);
        push (@dvis_list, $infobase . '.dvi');
        push (@pdfs_list, $infobase . '.pdf');
+       push (@pss_list, $infobase . '.ps');
     }
 
     # Handle location of texinfo.tex.
@@ -3356,6 +3361,7 @@
     &define_variable ("INFO_DEPS", "@info_deps_list");
     &define_variable ("DVIS", "@dvis_list");
     &define_variable ("PDFS", "@pdfs_list");
+    &define_variable ("PSS", "@pss_list");
     # This next isn't strictly needed now -- the places that look here
     # could easily be changed to look in info_TEXINFOS.  But this is
     # probably better, in case noinst_TEXINFOS is ever supported.
Index: automake.texi
===================================================================
RCS file: /cvs/automake/automake/automake.texi,v
retrieving revision 1.281
diff -u -r1.281 automake.texi
--- automake.texi       26 Jun 2002 08:37:48 -0000      1.281
+++ automake.texi       26 Jun 2002 19:08:48 -0000
@@ -596,8 +596,8 @@
 This is used to byte-compile Python scripts.
 
 @item texinfo.tex
-Not a program, this file is required for @code{make dvi} to work when
-Texinfo sources are in the package.
+Not a program, this file is required for @code{make dvi}, @code{make ps}
+and @code{make pdf} to work when Texinfo sources are in the package.
 
 @item ylwrap
 This program wraps @code{lex} and @code{yacc} and ensures that, for
@@ -3453,6 +3453,13 @@
 @vindex TEXINFOS
 @vindex info_TEXINFOS
 
+Automake generates rules to build @file{.info}, @file{.dvi}, @file{.ps},
+and @file{.pdf} files from your Texinfo sources.  The @file{.info} files
+are built by @code{make all} and installed by @code{make install}
+(unless you use @code{no-installinfo}, see below).  The other files can
+be built on request by @code{make dvi}, @code{make ps}, and @code{make
+pdf}.
+
 @cindex Texinfo macro, VERSION
 @cindex Texinfo macro, UPDATED
 @cindex Texinfo macro, EDITION
@@ -3543,7 +3550,7 @@
 The option @samp{no-texinfo.tex} can be used to eliminate the
 requirement for @file{texinfo.tex}.  Use of the variable
 @code{TEXINFO_TEX} is preferable, however, because that allows the
address@hidden target to still work.
address@hidden, @code{ps}, and @code{pdf} targets to still work.
 
 @cindex Target, install-info
 @cindex Target, noinstall-info
@@ -4619,34 +4626,43 @@
 your @file{Makefile.in}.  Automake will supplement the standard target
 with these user-supplied targets.
 
address@hidden  all
 @trindex  all-local
address@hidden  info
 @trindex  info-local
address@hidden  dvi
 @trindex  dvi-local
address@hidden  ps
address@hidden  ps-local
address@hidden  pdf
address@hidden  pdf-local
address@hidden  check
 @trindex  check-local
address@hidden  install
 @trindex  install-data-local
address@hidden  install-exec
 @trindex  install-exec-local
address@hidden  uninstall
 @trindex  uninstall-local
address@hidden  mostlyclean
 @trindex  mostlyclean-local
address@hidden  clean
 @trindex  clean-local
address@hidden  distclean
 @trindex  distclean-local
address@hidden  installdirs
 @trindex  installdirs-local
address@hidden  installcheck
 @trindex  installcheck-local
 
 The targets that support a local version are @code{all}, @code{info},
address@hidden, @code{check}, @code{install-data}, @code{install-exec},
address@hidden, @code{installdirs}, @code{installcheck} and the
-various @code{clean} targets (@code{mostlyclean}, @code{clean},
address@hidden, and @code{maintainer-clean}).  Note that there are no
address@hidden, @code{ps}, @code{pdf}, @code{check}, @code{install-data},
address@hidden, @code{uninstall}, @code{installdirs},
address@hidden and the various @code{clean} targets
+(@code{mostlyclean}, @code{clean}, @code{distclean}, and
address@hidden).  Note that there are no
 @code{uninstall-exec-local} or @code{uninstall-data-local} targets; just
 use @code{uninstall-local}.  It doesn't make sense to uninstall just
-data or just executables.
address@hidden all
address@hidden info
address@hidden dvi
address@hidden check
address@hidden install-data
address@hidden install-exec
address@hidden uninstall
 
 For instance, here is one way to install a file in @file{/etc}:
 
Index: lib/am/texinfos.am
===================================================================
RCS file: /cvs/automake/automake/lib/am/texinfos.am,v
retrieving revision 1.94
diff -u -r1.94 texinfos.am
--- lib/am/texinfos.am  13 Jun 2002 08:09:34 -0000      1.94
+++ lib/am/texinfos.am  26 Jun 2002 19:08:51 -0000
@@ -61,24 +61,28 @@
 
 .PHONY: info info-am dvi dvi-am pdf pdf-am
 if %?SUBDIRS%
-RECURSIVE_TARGETS += info-recursive dvi-recursive pdf-recursive
+RECURSIVE_TARGETS += info-recursive dvi-recursive pdf-recursive ps-recursive
 .PHONY info: info-recursive
 .PHONY dvi: dvi-recursive
 .PHONY pdf: pdf-recursive
+.PHONY ps: ps-recursive
 else !%?SUBDIRS%
 info: info-am
 dvi: dvi-am
 pdf: pdf-am
+ps: ps-am
 endif !%?SUBDIRS%
 
 if %?LOCAL-TEXIS%
 info-am: $(INFO_DEPS)
 dvi-am: $(DVIS)
 pdf-am: $(PDFS)
+ps-am: $(PSS)
 else ! %?LOCAL-TEXIS%
 info-am:
 dvi-am:
 pdf-am:
+ps-am:
 endif ! %?LOCAL-TEXIS%
 
 
-- 
Alexandre Duret-Lutz




reply via email to

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