Files
dotfiles/Makefile
2020-03-20 19:04:51 +00:00

31 lines
807 B
Makefile

# dotfiles Makefile
# ---------------------------------------------------------------------------- #
# Local target commands (warning: affects local environment)
# ---------------------------------------------------------------------------- #
.PHONY: clean
# Install dotfiles locally
all:
./bootstrap.sh
# Clean up after install
clean:
rm -f .dotlock
# ---------------------------------------------------------------------------- #
# Docker commands
# ---------------------------------------------------------------------------- #
.PHONY: build test start
# Build and tag docker image
build:
docker build . -t dotfiles:latest
# Run tests in docker container (args to specify test)
test:
docker run dotfiles:latest
# Launch bash in docker container
start:
docker run -it dotfiles:latest /bin/bash