Files
dotfiles/Makefile
2020-05-31 15:01:47 +01:00

34 lines
878 B
Makefile

SHELL := /bin/bash
# ---------------------------------------------------------------------------- #
# Local commands
# ---------------------------------------------------------------------------- #
.PHONY: clean
all:
# Install dotfiles
./bootstrap.sh
clean:
# Remove all temporary files and artefacts
rm -rf .dotlock tmp
# ---------------------------------------------------------------------------- #
# Docker commands
# ---------------------------------------------------------------------------- #
.PHONY: build test start
# Build and tag docker image
build:
docker build . -t dotfiles:latest
# Run tests in docker container
# @arg $TARGET binary to install and test
test:
docker build . -t dotfiles:localtest \
--build-arg TARGET=$$TARGET \
&& docker run dotfiles:localtest
# Launch bash in docker container
start:
docker run -it dotfiles:latest /bin/bash