mirror of
https://github.com/tkuschel/bees.git
synced 2025-11-17 14:59:14 +01: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