#
# 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, 59 Temple Place - Suite 330,
-# Boston, MA 02111-1307, USA.
+# the Free Software Foundation, 51 Franklin Street, Fifth Floor,
+# Boston, MA 02110-1301, USA.
#
pkgdata_DATA = ascii.enc asciifise.enc asciidkno.enc hp8.enc ibmpc.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 $(sysconfdir)
- if test -r $(sysconfdir)/enscript.cfg; then \
- cp $(sysconfdir)/enscript.cfg $(sysconfdir)/enscript.cfg.old; \
- else :; \
- fi
- $(INSTALL_DATA) enscript.cfg $(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 $(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