forked from nickjj/rolespec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (30 loc) · 983 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# RoleSpec Makefile: install, uninstall and test RoleSpec scripts
# Copyright (C) 2014 Nick Janetakis <nick.janetakis@gmail.com>
PREFIX="/usr/local"
BIN_DIR="${PREFIX}/bin"
LIB_DIR="${PREFIX}/lib/rolespec"
default: test
install:
@echo "Installing RoleSpec scripts in ${BIN_DIR} ..."
@test -d ${BIN_DIR} || mkdir -p ${BIN_DIR}
@cp bin/rolespec ${BIN_DIR}/rolespec
@echo "Installing RoleSpec libs in ${LIB_DIR} ..."
@test -d {$LIB_DIR} || mkdir -p ${LIB_DIR}
@cp VERSION ${LIB_DIR}
@cp -r lib/* ${LIB_DIR}
clean:
@echo "Cleaning up RoleSpec scripts ..."
@rm -rf ${BIN_DIR}/rolespec
@echo "Cleaning up RoleSpec libs ..."
@rm -rf ${LIB_DIR}
test:
@echo "Testing RoleSpec ..."
bash -x tests/test-cli
test-debian:
@echo "Testing RoleSpec (debian Jessie)..."
vagrant up debian
@echo "Tests done.Please run 'vagrant destroy debian -f'."
test-centos:
@echo "Testing RoleSpec (CentOS)..."
vagrant up centos
@echo "Tests done.Please run 'vagrant destroy centos -f'."