mirror of
https://github.com/Zygo/bees.git
synced 2025-08-03 06:13:29 +02:00
Makefile: create a template compiler
This creates a simple template compiler using sed in as a reusable variable. Signed-off-by: Kai Krakow <kai@kaishome.de>
This commit is contained in:
8
Defines.mk
Normal file
8
Defines.mk
Normal file
@@ -0,0 +1,8 @@
|
||||
MAKE += PREFIX=$(PREFIX) LIBEXEC_PREFIX=$(LIBEXEC_PREFIX) ETC_PREFIX=$(ETC_PREFIX)
|
||||
|
||||
define TEMPLATE_COMPILER =
|
||||
sed $< >$@ \
|
||||
-e's#@PREFIX@#$(PREFIX)#' \
|
||||
-e's#@ETC_PREFIX@#$(ETC_PREFIX)#' \
|
||||
-e's#@LIBEXEC_PREFIX@#$(LIBEXEC_PREFIX)#'
|
||||
endef
|
Reference in New Issue
Block a user