Create make install
This commit is contained in:
parent
14146b2f54
commit
6d1ebff3d5
11
Makefile
11
Makefile
@ -2,6 +2,10 @@ SHELL:=/bin/bash
|
|||||||
|
|
||||||
VERSION=0.0.1
|
VERSION=0.0.1
|
||||||
|
|
||||||
|
PREFIX?=/usr/local
|
||||||
|
INSTALL_BIN=$(PREFIX)/bin
|
||||||
|
KICKSTART_LOCATION=$(PREFIX)/share/kickstart
|
||||||
|
|
||||||
deb: clean
|
deb: clean
|
||||||
fpm -s dir -t deb -n kickstart \
|
fpm -s dir -t deb -n kickstart \
|
||||||
-x usr/local/share/kickstart/.baseline \
|
-x usr/local/share/kickstart/.baseline \
|
||||||
@ -17,3 +21,10 @@ deb: clean
|
|||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm *.deb 2>/dev/null || true
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user