Files
dotfiles/Makefile
Andrejus 638c907c06 further cleanup
update docs and tests
2020-03-03 17:49:10 +00:00

32 lines
839 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 --build-arg
# Run tests in docker container (args to specify test)
test:
docker build . -t dotfiles --build-args
docker run dotfiles
# Launch bash in docker container
start:
docker run -it dotfiles /bin/bash