X-Git-Url: http://git.savannah.gnu.org/gitweb/?p=enscript.git;a=blobdiff_plain;f=lib%2FMakefile.am;h=4910fd0af6b853b123f453d445f3ea84a77c742f;hp=74788fad39542c1ef49d718ac07c5fc1501cec17;hb=refs%2Fheads%2Frelease;hpb=2b06816cd764dc38454271be99d653c403135c47 diff --git a/lib/Makefile.am b/lib/Makefile.am index 74788fa..4910fd0 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -6,22 +6,20 @@ # # -# This file is part of GNU enscript. +# This file is part of GNU Enscript. # -# This program is free software; you can redistribute it and/or modify +# Enscript 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 2, or (at your option) -# any later version. +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. # -# This program is distributed in the hope that it will be useful, +# Enscript 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; see the file COPYING. If not, write to -# the Free Software Foundation, 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. +# along with Enscript. If not, see . # pkgdata_DATA = ascii.enc asciifise.enc asciidkno.enc hp8.enc ibmpc.enc \ @@ -30,25 +28,18 @@ koi8.enc 88591.enc 88592.enc 88593.enc 88594.enc 88595.enc 88597.enc \ edd.hdr emacs.hdr enscript.hdr enscript-color.hdr frame.hdr mp.hdr \ simple.hdr squeeze.hdr enscript.pro +sysconf_DATA = enscript.cfg +CLEANFILES = $(sysconf_DATA) + EXTRA_DIST = enscript.cfg.in $(pkgdata_DATA) Makefile-encodings \ make-encoding.pl -CLEANFILES = enscript.cfg - -all-local: enscript.cfg - -install-data-local: enscript.cfg - $(top_srcdir)/mkinstalldirs $(DESTDIR)$(sysconfdir) - if test -r $(DESTDIR)$(sysconfdir)/enscript.cfg; then \ - cp $(DESTDIR)$(sysconfdir)/enscript.cfg \ - $(DESTDIR)$(sysconfdir)/enscript.cfg.old; \ - else :; \ - fi - $(INSTALL_DATA) enscript.cfg $(DESTDIR)$(sysconfdir)/enscript.cfg +do_subst = sed -e 's%@DATADIR@%$(datadir)%g' \ + -e 's%@media@%@MEDIA@%g' \ + -e 's%@BINDIR@%$(bindir)%g' \ + -e 's%@spooler@%@SPOOLER@%g' \ + -e 's%@pslevel@%@PSLEVEL@%g' -uninstall-local: - rm -f $(DESTDIR)$(sysconfdir)/enscript.cfg +enscript.cfg: enscript.cfg.in Makefile + $(do_subst) < $(srcdir)/enscript.cfg.in > enscript.cfg -enscript.cfg: $(srcdir)/enscript.cfg.in Makefile - sed 's%@DATADIR@%$(datadir)%g; s%@media@%@MEDIA@%g; s%@BINDIR@%$(bindir)%g; s%@spooler@%@SPOOLER@%g; s%@pslevel@%@PSLEVEL@%g' \ - $(srcdir)/enscript.cfg.in >enscript.cfg