BIN_DIR := $(prefix)/bin
MAN_DIR := $(prefix)/share/man
-.PHONY: all local installdocs install clean
+.PHONY: all local docs installdocs install clean
all: drin
local: clean drin
touch drin.in
-installdocs: drin.1
+docs: drin.1
+
+installdocs: docs
install -d $(DESTDIR)$(MAN_DIR)/man1
install -m644 drin.1 $(DESTDIR)$(MAN_DIR)/man1