Files
dotfiles/Makefile
2020-07-12 14:11:50 +01:00

36 lines
884 B
Makefile

# ---------------------------------------------------------------------------- #
# Local commands
# ---------------------------------------------------------------------------- #
.PHONY: clean install
# Install dotfiles to home folder
all:
./bootstrap.pl
# @arg $TARGET binary to install
install:
./install.pl
clean:
rm -rf logs
# ---------------------------------------------------------------------------- #
# 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