Files
dotfiles/Makefile
2020-07-11 20:59:48 +01:00

29 lines
795 B
Makefile

# ---------------------------------------------------------------------------- #
# Local commands
# ---------------------------------------------------------------------------- #
.PHONY: clean
# @arg $TARGET binary to install
all:
./install.pl
# ---------------------------------------------------------------------------- #
# 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