0
0
mirror of https://github.com/tj/n.git synced 2024-11-21 18:48:57 +01:00

make sure install directory exists

Create the target directory structure before copying
This commit is contained in:
Ali Ijaz Sheikh 2015-02-17 17:32:45 -08:00
parent 8c05c5ab26
commit 1c9eaae77e

View File

@ -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
.PHONY: install uninstall