Commit c989d303 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(LK_SCRIPTS): New macro.

parent ceb4d917
dnl $Id: mkmi.m4,v 1.2 1994/03/05 17:19:28 ceder Exp $
dnl $Id: mkmi.m4,v 1.3 1994/03/06 19:32:55 ceder Exp $
dnl Create Makefile.in from Makefile.src
dnl
changequote([,])dnl
......@@ -122,16 +122,32 @@ define([prelibraries],[[$(LIBNAME)]])dnl end of prelibraries
])dnl end of LK_STD_LIB
dnl
define([prebinaries],)dnl
define([dobinaries],)dnl
define([preinstall],)dnl
define([doinstall],)dnl
define([LK_DESCEND],dnl
[LK_descend([includes],preincludes,doincludes)
LK_descend([libraries],prelibraries,dolibraries)
LK_descend([binaries],prebinaries)
LK_descend([binaries],prebinaries,dobinaries)
LK_descend([install],preinstall,doinstall)
LK_DEPEND
LK_CLEAN])dnl end of LK_DESCEND
dnl
define([LK_SCRIPTS],
[[SCRIPTS = $1
]define([dobinaries],
[[ for i in $(SCRIPTS); do \
sed -e s+@ETCDIR@+$(etcdir)+ -e s+@BINDIR@+$(bindir)+ \
$(srcdir)/$$i.sh > $$i;\
chmod +x $$i;\
done
]])dnl end dobinaries
define([doinstall],
[[ for i in $(SCRIPTS); do \
$(INSTALL_PROGRAM) $$i $(bindir); \
done
]])dnl end doinstall
])dnl end LK_SCRIPTS
dnl
define([LK_STD],[[# Begin LK_STD
srcdir = @srcdir@
......
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