pedini.dev/makefile

17 lines
242 B
Makefile

#!make
include .vars
default: build
prep:
git submodule foreach --recursive bash -c "git checkout $$(git remote show origin | grep HEAD | sed 's/.*\: //'); git pull"
build: prep
./version.sh
deploy:
./deploy.sh
run: prep
hugo server