mirror of
https://github.com/Zygo/bees.git
synced 2025-05-17 21:35:45 +02:00
Generalize sed invocation rule
Remove the redundant sed call by generalizing the rule to apply sed to .in templates. Signed-off-by: Kai Krakow <kai@kaishome.de>
This commit is contained in:
parent
abeb6e74b2
commit
f7f99f52b5
5
Makefile
5
Makefile
@ -25,10 +25,7 @@ test: ## Run tests
|
|||||||
test: lib src
|
test: lib src
|
||||||
$(MAKE) -C test
|
$(MAKE) -C test
|
||||||
|
|
||||||
scripts/beesd: scripts/beesd.in
|
scripts/%: scripts/%.in
|
||||||
sed -e's#@LIBEXEC_PREFIX@#$(LIBEXEC_PREFIX)#' -e's#@PREFIX@#$(PREFIX)#' "$<" >"$@"
|
|
||||||
|
|
||||||
scripts/beesd@.service: scripts/beesd@.service.in
|
|
||||||
sed -e's#@LIBEXEC_PREFIX@#$(LIBEXEC_PREFIX)#' -e's#@PREFIX@#$(PREFIX)#' "$<" >"$@"
|
sed -e's#@LIBEXEC_PREFIX@#$(LIBEXEC_PREFIX)#' -e's#@PREFIX@#$(PREFIX)#' "$<" >"$@"
|
||||||
|
|
||||||
scripts: scripts/beesd scripts/beesd@.service
|
scripts: scripts/beesd scripts/beesd@.service
|
||||||
|
Loading…
x
Reference in New Issue
Block a user