Skip to content

Commit

Permalink
make: add target to apply explicit path patch
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushnix committed Mar 22, 2023
1 parent 142c786 commit 7222b68
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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) < $^ > $@

Expand All @@ -45,6 +49,7 @@ fishcomp:
clean:
rm -f man/$(PROG).1
rm -f man/$(PROG).5
rm -f $(PROG).rej

check:
$(SHCHK) $(PROG)
Expand Down

0 comments on commit 7222b68

Please sign in to comment.