You've already forked pedini.dev
Specify full path to bash interpreter for version.sh and deploy.sh scripts in makefile to ensure consistent execution across different environments and avoid potential PATH issues.
17 lines
275 B
Makefile
17 lines
275 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
|
|
/usr/bin/env bash version.sh
|
|
|
|
deploy:
|
|
/usr/bin/env bash deploy.sh
|
|
|
|
run: prep
|
|
hugo server
|