diff options
author | Ayush Agarwal <ayushnix@fastmail.com> | 2023-03-23 01:19:18 +0530 |
---|---|---|
committer | Ayush Agarwal <ayushnix@fastmail.com> | 2023-03-23 01:19:18 +0530 |
commit | 7222b686ee76ea86bae6c418ea4f76329780f26e (patch) | |
tree | 45b32b320404c94bfe241c1e061d6b50ac4bed87 /Makefile | |
parent | 142c786af22d0e20bfbf7ec1a0e9d3497727a5b6 (diff) |
make: add target to apply explicit path patch
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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) |