diff --git a/Makefile b/Makefile index 6ec81c3..59dedfc 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,11 @@ +include config.mk all: mkc install: man sh c all .PHONY: man sh mkc c man: - # this used to be {command} $(DESTDIR)$(PREFIX)/man/man1 - # this did not work on my computer, but might be needed on other installations - mkdir -p /usr/local/man/man1 - cp -f man/* /usr/local/man/man1 + mkdir -p $(DESTDIR)$(PREFIX)/man/man1 + cp -f man/* $(DESTDIR)$(PREFIX)/man/man1 sh: mkdir -p $(DESTDIR)$(PREFIX)/bin diff --git a/config.mk b/config.mk new file mode 100644 index 0000000..bcab3b0 --- /dev/null +++ b/config.mk @@ -0,0 +1,2 @@ +DESTDIR=$(HOME)/.local +