From 1c9eaae77e00198c1ef90051ef78504e175a029b Mon Sep 17 00:00:00 2001 From: Ali Ijaz Sheikh Date: Tue, 17 Feb 2015 17:32:45 -0800 Subject: [PATCH] make sure install directory exists Create the target directory structure before copying --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5f24bd5..39b898d 100644 --- a/Makefile +++ b/Makefile @@ -2,9 +2,10 @@ PREFIX ?= /usr/local install: bin/n + mkdir -p $(PREFIX)/$(dir $<) cp $< $(PREFIX)/$< uninstall: rm -f $(PREFIX)/bin/n -.PHONY: install uninstall \ No newline at end of file +.PHONY: install uninstall