diff options
author | EuAndreh <eu@euandre.org> | 2022-08-30 16:26:32 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2022-08-30 16:27:29 -0300 |
commit | 4cc04afc11f06cbe3b624c8571dc6999332fdfb1 (patch) | |
tree | 4463ea12ca82c692ec43a706753c228916addfb4 /Makefile | |
parent | src/development/: WIP work on Perl md2html (diff) | |
download | euandre.org-4cc04afc11f06cbe3b624c8571dc6999332fdfb1.tar.gz euandre.org-4cc04afc11f06cbe3b624c8571dc6999332fdfb1.tar.xz |
dynamic.mk: Move everything from Makefile into dynamic.mk
Diffstat (limited to '')
-rw-r--r-- | Makefile | 73 |
1 files changed, 6 insertions, 67 deletions
@@ -1,77 +1,16 @@ .POSIX: -FQDN = euandre.org +.DEFAULT: + $(MAKE) generated.mk + $(MAKE) -f dynamic.mk $< - - -derived-assets = \ - static/lord-favicon.png \ - static/lord-favicon.ico \ - favicon.ico \ - TODOs.html \ - - - -all: public - -dynamic: generated.mk +all: generated.mk $(MAKE) -f dynamic.mk all generated.mk: ALWAYS JEKYLL_COMPAT sh src/development/dynmake.sh > $@ -JEKYLL_COMPAT: - sh src/development/JEKYLL_COMPAT/copy-content.sh -# NOOP rule to assert that the targets that depend on it are -# always considered stale. ALWAYS: -static/lord-favicon.png: static/lord-favicon.svg - inkscape -o $@ -w 2048 -h 2048 -b white static/lord-favicon.svg - -static/lord-favicon.ico: static/lord-favicon.svg - convert static/lord-favicon.svg $@ - -favicon.ico: static/lord-favicon.ico - ln -fs static/lord-favicon.ico $@ - -TODOs.html: TODOs.md - sh aux/workflow/TODOs.sh -n website -m public-inbox > $@ - - - - -check: - -disabled: - sh aux/assert-shellcheck.sh - sh aux/workflow/assert-todos.sh - sh scripts/assert-spelling.sh - sh scripts/extract-translations.sh - sh scripts/apply-translations.sh - -dev-check: check - -clean: - if [ -e generated.mk ]; then \ - $(MAKE) -f dynamic.mk clean; \ - fi - rm -rf \ - public/ .jekyll-cache \ - $(derived-assets) \ - src/content/ generated.mk - - -JEKYLL = JEKYLL_ENV=production jekyll -public: $(derived-assets) dynamic - $(JEKYLL) build - -run: all - open 'http://localhost:4000' - $(JEKYLL) serve - -deploy: all - rsync -avzP public/ $(FQDN):/home/user-data/www/default/ --delete - -fqdn: - printf '$(FQDN)' +JEKYLL_COMPAT: + sh src/development/JEKYLL_COMPAT/copy-content.sh |