2024-02-09 17:51:20 +00:00
|
|
|
all:
|
2024-02-07 23:12:20 +00:00
|
|
|
.PHONY: all
|
|
|
|
|
2024-02-09 17:51:20 +00:00
|
|
|
sync-from-webflow: static/index.html
|
|
|
|
sync-from-webflow: static/webflow-assets/650a2b4cc0091d7b7c21adaa/65137e999ce90eda6bc2c5f1_placeholder_background.jpg
|
|
|
|
sync-from-webflow: static/webflow-assets/650a2b4cc0091d7b7c21adaa/65139fa5e0b8553d4c913fe5_logo_horizontal_2.svg
|
|
|
|
sync-from-webflow: static/webflow-assets/650a2b4cc0091d7b7c21adaa/6515ffbd1e90dc6f533c7a85_umorpha_favcon.jpg
|
|
|
|
sync-from-webflow: static/webflow-assets/650a2b4cc0091d7b7c21adaa/css/umorpha.webflow.a8989709b.min.css
|
|
|
|
sync-from-webflow: static/webflow-assets/650a2b4cc0091d7b7c21adaa/js/webflow.fbf9e890f.js
|
|
|
|
sync-from-webflow: static/webflow-assets/img/webclip.png
|
|
|
|
sync-from-webflow: static/webflow-uploads/650a2b4cc0091d7b7c21adaa/650a2db03a157b2c46cdd565_Futura-Std-Medium.ttf
|
|
|
|
.PHONY: sync-from-webflow
|
|
|
|
|
2024-02-07 22:33:16 +00:00
|
|
|
mirror: www.umorpha.io.har unhar.go
|
2024-02-07 23:12:20 +00:00
|
|
|
rm -rf $@
|
2024-02-07 22:33:16 +00:00
|
|
|
go run unhar.go $@ <$<
|
2024-02-07 23:12:20 +00:00
|
|
|
mirror/%: mirror
|
|
|
|
test -f $@
|
|
|
|
|
|
|
|
rewrite = sed
|
|
|
|
rewrite += -e 's,https://assets-global.website-files.com/,/webflow-assets/,g'
|
|
|
|
rewrite += -e 's,https://uploads-ssl.webflow.com/,/webflow-uploads/,g'
|
|
|
|
rewrite += -e 's,Futura%20Std%20Medium\.ttf,Futura-Std-Medium\.ttf,g'
|
|
|
|
|
2024-02-09 17:24:34 +00:00
|
|
|
static/index.html: mirror/www.umorpha.io patches/index.html.patch Makefile
|
2024-02-07 23:12:20 +00:00
|
|
|
mkdir -p $(@D)
|
2024-02-07 23:28:07 +00:00
|
|
|
<$< $(rewrite) | (tidy -quiet -indent -wrap 0||true) >$@
|
2024-02-09 17:24:34 +00:00
|
|
|
patch -i patches/index.html.patch $@
|
2024-02-07 23:28:07 +00:00
|
|
|
static/webflow-assets/%.js: mirror/assets-global.website-files.com/%.js Makefile
|
|
|
|
mkdir -p $(@D)
|
|
|
|
<$< $(rewrite) | js-beautify --stdin >$@
|
2024-02-07 23:12:20 +00:00
|
|
|
static/webflow-assets/%: mirror/assets-global.website-files.com/% Makefile
|
|
|
|
mkdir -p $(@D)
|
|
|
|
$(rewrite) <$< >$@
|
|
|
|
static/webflow-uploads/%: mirror/uploads-ssl.webflow.com/% Makefile
|
|
|
|
mkdir -p $(@D)
|
|
|
|
$(rewrite) <$< >$@
|