45 lines
1.2 KiB
Makefile
45 lines
1.2 KiB
Makefile
default: project-name
|
|
@just --list
|
|
|
|
project-name:
|
|
@echo "iiogama.0x212.com Website"
|
|
|
|
build: build-blog build-photos
|
|
|
|
build-blog:
|
|
sh ./blog.sh build
|
|
|
|
build-photos:
|
|
cd ./photos/; bash -c '../gallery.sh -t "Photos" -d "__thumbs"'
|
|
|
|
serve:
|
|
python3 -m http.server --directory _output/
|
|
|
|
push: push-blog push-photos push-assets
|
|
git add .; git commit -m "$(date +%Y%m%d%H%M%S) push"; git push
|
|
|
|
push-blog:
|
|
find ./_output/ -type d -print0 | xargs -0 -I {} chmod 775 "{}"
|
|
find ./_output/ -type f -print0 | xargs -0 -I {} chmod 664 "{}"
|
|
rsync -avz ./_output/ iiogama-web:/var/www/htdocs/
|
|
#scp -r ./_output/* iiogama:/var/www/htdocs/
|
|
|
|
push-photos:
|
|
find ./photos/ -type d -print0 | xargs -0 -I {} chmod 775 "{}"
|
|
find ./photos/ -type f -print0 | xargs -0 -I {} chmod 664 "{}"
|
|
rsync -avz ./photos/ iiogama-web:/var/www/htdocs/photos/
|
|
#scp -r ./photos iiogama:/var/www/htdocs/
|
|
|
|
push-assets:
|
|
find ./assets/ -type d -print0 | xargs -0 -I {} chmod 775 "{}"
|
|
find ./assets/ -type f -print0 | xargs -0 -I {} chmod 664 "{}"
|
|
rsync -avz ./assets/ iiogama-web:/var/www/htdocs/
|
|
#scp -r ./assets iiogama:/var/www/htdocs/
|
|
|
|
clean:
|
|
test -d _output/ && rm -rf _output/ || exit 0
|
|
test -d photos/gallery/ && rm -rf photos/gallery/ || exit 0
|
|
|
|
test:
|
|
sh ./blog.sh test
|