From 791a64aa04e8e19b12b4cc3ac91c661f2d508777 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Fri, 24 Jan 2025 15:40:56 +0100 Subject: make using the makefile a little more convenient MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- edit.mk | 3 +++ makefile | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/edit.mk b/edit.mk index 4d1fbe1..23671f9 100644 --- a/edit.mk +++ b/edit.mk @@ -4,6 +4,9 @@ commit: edit: @ ${EDITOR} src/inc/$(shell pushd src/inc >/dev/null && git ls-files -c . | fzf -m --bind=ctrl-c:accept-or-print-query) + +change: + @ ${MAKE} edit @ ${MAKE} gen @ ${MAKE} commit diff --git a/makefile b/makefile index 38fba24..61f632a 100644 --- a/makefile +++ b/makefile @@ -40,7 +40,9 @@ serve: watch-and-serve: @ ${MAKE} -j2 watch serve -.PHONY: all clean serve watch watch-and-serve +was: watch-and-serve + +.PHONY: all clean serve watch watch-and-serve was include webdeploy.mk include edit.mk -- cgit 1.4.1