2 # Automakefile for the library files.
3 # Copyright (c) 1995-1998 Markku Rossi
5 # Author: Markku Rossi <mtr@iki.fi>
9 # This file is part of GNU enscript.
11 # This program is free software; you can redistribute it and/or modify
12 # it under the terms of the GNU General Public License as published by
13 # the Free Software Foundation; either version 2, or (at your option)
16 # This program is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 # GNU General Public License for more details.
21 # You should have received a copy of the GNU General Public License
22 # along with this program; see the file COPYING. If not, write to
23 # the Free Software Foundation, 51 Franklin Street, Fifth Floor,
24 # Boston, MA 02110-1301, USA.
27 pkgdata_DATA = ascii.enc asciifise.enc asciidkno.enc hp8.enc ibmpc.enc \
28 koi8.enc 88591.enc 88592.enc 88593.enc 88594.enc 88595.enc 88597.enc \
29 88599.enc 885910.enc mac.enc ps.enc pslatin1.enc vms.enc a2ps.hdr \
30 edd.hdr emacs.hdr enscript.hdr enscript-color.hdr frame.hdr mp.hdr \
31 simple.hdr squeeze.hdr enscript.pro
33 EXTRA_DIST = enscript.cfg.in $(pkgdata_DATA) Makefile-encodings \
36 CLEANFILES = enscript.cfg
38 all-local: enscript.cfg
40 install-data-local: enscript.cfg
41 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(sysconfdir)
42 if test -r $(DESTDIR)$(sysconfdir)/enscript.cfg; then \
43 cp $(DESTDIR)$(sysconfdir)/enscript.cfg \
44 $(DESTDIR)$(sysconfdir)/enscript.cfg.old; \
47 $(INSTALL_DATA) enscript.cfg $(DESTDIR)$(sysconfdir)/enscript.cfg
50 rm -f $(DESTDIR)$(sysconfdir)/enscript.cfg
52 enscript.cfg: $(srcdir)/enscript.cfg.in Makefile
53 sed 's%@DATADIR@%$(datadir)%g; s%@media@%@MEDIA@%g; s%@BINDIR@%$(bindir)%g; s%@spooler@%@SPOOLER@%g; s%@pslevel@%@PSLEVEL@%g' \
54 $(srcdir)/enscript.cfg.in >enscript.cfg