fix up makefile, include install target

This commit is contained in:
Brian Picciano 2021-01-22 22:09:35 -07:00
parent bcf9b230be
commit 3a2309c264
2 changed files with 12 additions and 5 deletions

View File

@ -1,3 +1,12 @@
result:
nix-build -A build
install: result
nix-env -i "$$(readlink result)"
clean:
rm result
serve:
nix-shell -A serve
@ -6,6 +15,3 @@ update:
lock:
nix-shell -p bundler -p bundix --run 'bundler lock; bundler package --no-install --path vendor; bundix; rm -rf .bundle vendor'
build:
nix-build -A build

View File

@ -1,5 +1,6 @@
source $stdenv/setup
set -e
mkdir -p "$out"
$jekyll_env/bin/jekyll build -s "$src" -d "$out"
d="$out/var/www/blog.mediocregopher.com"
mkdir -p "$d"
$jekyll_env/bin/jekyll build -s "$src" -d "$d"