0
0
mirror of https://github.com/tj/n.git synced 2024-11-22 11:37:26 +01:00
n/Makefile
Ali Ijaz Sheikh 1c9eaae77e make sure install directory exists
Create the target directory structure before copying
2015-02-17 17:32:45 -08:00

12 lines
150 B
Makefile

PREFIX ?= /usr/local
install: bin/n
mkdir -p $(PREFIX)/$(dir $<)
cp $< $(PREFIX)/$<
uninstall:
rm -f $(PREFIX)/bin/n
.PHONY: install uninstall