Create make install

This commit is contained in:
Bruno Tavares 2014-03-20 19:06:30 -03:00
parent 14146b2f54
commit 6d1ebff3d5

View File

@ -2,6 +2,10 @@ SHELL:=/bin/bash
VERSION=0.0.1
PREFIX?=/usr/local
INSTALL_BIN=$(PREFIX)/bin
KICKSTART_LOCATION=$(PREFIX)/share/kickstart
deb: clean
fpm -s dir -t deb -n kickstart \
-x usr/local/share/kickstart/.baseline \
@ -17,3 +21,10 @@ deb: clean
clean:
rm *.deb 2>/dev/null || true
install:
mkdir -p $(KICKSTART_LOCATION)
rsync -r * $(KICKSTART_LOCATION)
$(RM) $(INSTALL_BIN)/kickstart || true
mkdir -p $(INSTALL_BIN)
ln -s $(KICKSTART_LOCATION)/bin/kickstart $(INSTALL_BIN)/kickstart