Makefile: auto-blobs, index.html tweaks

This commit is contained in:
Andrea Rogers 2026-04-19 14:33:45 -05:00
commit 727e0629af
3 changed files with 11 additions and 11 deletions

View file

@ -1,8 +1,6 @@
DEPLOY_HTTPROOT ?= httproot
DEPLOY_BLOBS = andrea0s-plain-noextfonts.svg \
blob/ebrimabd.ttf \
blob/window-capture \
blob/vcf-2024-pile.jpg
DEPLOY_BLOBS := $(foreach blob,$(wildcard blob/*),$(DEPLOY_HTTPROOT)/$(blob))
# AWESOME_BLOGS := -s https://lwn.net/headlines/rss \
# -s https://lobste.rs/rss \
# -s https://blog.haskell.org/atom.xml \
@ -65,16 +63,18 @@ index.html: indexhead.html nav.head.html index.indicator.html nav.tail.html inde
cat $^ > $@
test: deploy
$(OPEN) $@.html
#$(OPEN) $@.html
cd $(DEPLOY_HTTPROOT) \
&& ln -s . '~targetdisk' \
&& (ln -s . '~targetdisk' || :) \
&& python -m http.server
$(DEPLOY_HTTPROOT)/blob:
mkdir -p $(@)
cp -rv $(DEPLOY_BLOBS) $(@)
$(DEPLOY_HTTPROOT)/blob/%: blob/% $(DEPLOY_HTTPROOT)/blob
cp -rv $< $@
deploy: all $(DEPLOY_HTTPROOT)/blob
$(DEPLOY_HTTPROOT)/blob:
mkdir -p $@
deploy: all $(DEPLOY_BLOBS)
cp -rv *.css *.html blog media \
$(DEPLOY_HTTPROOT)

View file

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Before After
Before After

View file

@ -1,5 +1,5 @@
<div class="fc">
<img src="andrea0s-plain-noextfonts.svg" />
<img src="/~targetdisk/blob/andrea0s-plain-noextfonts.svg" />
</div>
</body>