add install targets

This commit is contained in:
Andrejus
2020-03-25 19:57:24 +00:00
parent 826cc598b9
commit ae4fc2832c
19 changed files with 111 additions and 196 deletions

View File

@@ -1,14 +1,12 @@
# dotfiles Makefile
SHELL := /bin/bash
# ---------------------------------------------------------------------------- #
# Local target commands (warning: affects local environment)
# Local commands
# ---------------------------------------------------------------------------- #
.PHONY: clean
# Install dotfiles locally
all:
./bootstrap.sh
# Clean up after install
clean:
rm -f .dotlock
@@ -21,9 +19,12 @@ clean:
build:
docker build . -t dotfiles:latest
# Run tests in docker container (args to specify test)
# Run tests in docker container
# @arg $TARGET binary to install and test
test:
docker run dotfiles:latest
docker build . -t dotfiles:localtest \
--build-arg TARGET=$$TARGET \
&& docker run dotfiles:localtest
# Launch bash in docker container
start: