From 346d8bc24babeed3a112895ec34aab0074b4a78b Mon Sep 17 00:00:00 2001 From: hachem Date: Tue, 13 Oct 2026 01:02:42 +0200 Subject: feat: refactor defaults --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7d636e0..c424aff 100644 --- a/Makefile +++ b/Makefile @@ -31,6 +31,9 @@ SRC := mkproj.c PREFIX ?= /usr/local bindir := $(DESTDIR)$(PREFIX)/bin mandir := $(DESTDIR)$(PREFIX)/share/man/man1 +bashdir := $(DESTDIR)$(PREFIX)/share/bash-completion/completions +zshdir := $(DESTDIR)$(PREFIX)/share/zsh/site-functions +fishdir := $(DESTDIR)$(PREFIX)/share/fish/vendor_completions.d all: $(TARGET) @@ -55,9 +58,16 @@ install: mkproj.1 install -m 755 $(TARGET) $(bindir)/$(TARGET) install -d $(mandir) install -m 644 mkproj.1 $(mandir)/mkproj.1 + install -d $(bashdir) $(zshdir) $(fishdir) + ./$(TARGET) --completions bash > $(bashdir)/mkproj + ./$(TARGET) --completions zsh > $(zshdir)/_mkproj + ./$(TARGET) --completions fish > $(fishdir)/mkproj.fish uninstall: rm -f $(bindir)/$(TARGET) rm -f $(mandir)/mkproj.1 + rm -f $(bashdir)/mkproj + rm -f $(zshdir)/_mkproj + rm -f $(fishdir)/mkproj.fish .PHONY: all check test clean install uninstall -- cgit v1.3