Commit 466bce40 authored by Niels Möller's avatar Niels Möller
Browse files

(environ.h): New rule for creating environ.h

from environ.h.in.

Rev: src/Makefile.am.in:1.139
Rev: src/environ.h.in:1.1
parent 20522e2b
......@@ -100,6 +100,16 @@ liblsh_a_LIBADD = @LIBOBJS@
# bison $< -o $@T
# test -s $@T && mv -f $@T $@
# FIXME: Won't work if the filename contains `,', `\', `"' or newline.
environ.h: environ.h.in Makefile
(echo '/* Automatically generated from environ.h.in, by make. */' ; \
sed -e 's,@''prefix@,$(prefix),' \
-e 's,@''bindir@,$(bindir),' \
-e 's,@''sbindir@,$(sbindir),' \
-e 's,@''libexecdir@,$(libexecdir),'
-e 's,@''sysconfdir@,$(sysconfdir),' < $<) >$@T
test -s $@T && mv -f $@T $@
atoms_defines.h: atoms.in process_atoms
$(BASH) $(srcdir)/process_atoms header <$< >$@T
test -s $@T && mv -f $@T $@
......
/* -*- c -*-
*
* Defines file names and environment variables used by the lsh
* programs. Substitutions are performed at make time, not configure
* time. */
#define PREFIX "@prefix@"
#define BINDIR "@bindir@"
#define SBINDIR "@sbindir@"
#define LIBEXECDIR "@libexecdir@"
#define SYSCONFDIR "@sysconfdir@"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment