aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index c9016c5..a58a6e7 100644
--- a/Makefile
+++ b/Makefile
@@ -7,8 +7,9 @@ DATAROOTDIR := $(PREFIX)/share
MANDIR := $(DATAROOTDIR)/man
BASHCOMPDIR := $(DATAROOTDIR)/bash-completion/completions
FISHCOMPDIR := $(DATAROOTDIR)/fish/vendor_completions.d
+CONFDIRS = /etc/xdg
PROG = tessen
-
+PROGCFG = config
SCDOC = scdoc
SHCHK = shellcheck
SHFMT = shfmt
@@ -20,15 +21,13 @@ all:
@echo "$(PROG) is a shell script and doesn't need to be compiled"
@echo "To install it, enter \"make install\""
-install: man bashcomp fishcomp
- $(INSTALL) -Dm 0755 $(PROG) -t $(DESTDIR)$(BINDIR)
+install: man bashcomp fishcomp minimal
@echo ""
@echo "$(PROG) has been installed succesfully"
minimal:
$(INSTALL) -Dm 0755 $(PROG) -t $(DESTDIR)$(BINDIR)
- @echo ""
- @echo "$(PROG) has been installed succesfully"
+ $(INSTALL) -Dm 0644 $(PROGCFG) -t $(DESTDIR)$(CONFDIRS)/$(PROG)
man: man/$(PROG).1 man/$(PROG).5
$(INSTALL) -Dm 0644 man/$(PROG).1 -t $(DESTDIR)$(MANDIR)/man1
@@ -57,3 +56,4 @@ uninstall:
rm -f "$(DESTDIR)$(MANDIR)/man5/$(PROG).5"
rm -f "$(DESTDIR)$(BASHCOMPDIR)/$(PROG)"
rm -f "$(DESTDIR)$(FISHCOMPDIR)/$(PROG).fish"
+ rm -f "$(DESTDIR)$(CONFDIRS)/$(PROG)/$(PROGCFG)"