summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAyush Agarwal <ayushnix@fastmail.com>2023-03-23 01:19:18 +0530
committerAyush Agarwal <ayushnix@fastmail.com>2023-03-23 01:19:18 +0530
commit7222b686ee76ea86bae6c418ea4f76329780f26e (patch)
tree45b32b320404c94bfe241c1e061d6b50ac4bed87
parent142c786af22d0e20bfbf7ec1a0e9d3497727a5b6 (diff)
make: add target to apply explicit path patch
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a58a6e7..896548b 100644
--- a/Makefile
+++ b/Makefile
@@ -10,12 +10,13 @@ FISHCOMPDIR := $(DATAROOTDIR)/fish/vendor_completions.d
CONFDIRS = /etc/xdg
PROG = tessen
PROGCFG = config
+EXPATH = explicit_path.patch
SCDOC = scdoc
SHCHK = shellcheck
SHFMT = shfmt
INSTALL = install
-.PHONY: all install minimal bashcomp fishcomp clean uninstall
+.PHONY: all install minimal bashcomp fishcomp man expatch clean uninstall
all:
@echo "$(PROG) is a shell script and doesn't need to be compiled"
@@ -33,6 +34,9 @@ man: man/$(PROG).1 man/$(PROG).5
$(INSTALL) -Dm 0644 man/$(PROG).1 -t $(DESTDIR)$(MANDIR)/man1
$(INSTALL) -Dm 0644 man/$(PROG).5 -t $(DESTDIR)$(MANDIR)/man5
+expatch:
+ patch -N $(PROG) < $(EXPATH)
+
man/%: man/%.scd
$(SCDOC) < $^ > $@
@@ -45,6 +49,7 @@ fishcomp:
clean:
rm -f man/$(PROG).1
rm -f man/$(PROG).5
+ rm -f $(PROG).rej
check:
$(SHCHK) $(PROG)