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_HTTPROOT ?= httproot
DEPLOY_BLOBS = andrea0s-plain-noextfonts.svg \ DEPLOY_BLOBS := $(foreach blob,$(wildcard blob/*),$(DEPLOY_HTTPROOT)/$(blob))
blob/ebrimabd.ttf \
blob/window-capture \
blob/vcf-2024-pile.jpg
# AWESOME_BLOGS := -s https://lwn.net/headlines/rss \ # AWESOME_BLOGS := -s https://lwn.net/headlines/rss \
# -s https://lobste.rs/rss \ # -s https://lobste.rs/rss \
# -s https://blog.haskell.org/atom.xml \ # -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 $^ > $@ cat $^ > $@
test: deploy test: deploy
$(OPEN) $@.html #$(OPEN) $@.html
cd $(DEPLOY_HTTPROOT) \ cd $(DEPLOY_HTTPROOT) \
&& ln -s . '~targetdisk' \ && (ln -s . '~targetdisk' || :) \
&& python -m http.server && python -m http.server
$(DEPLOY_HTTPROOT)/blob: $(DEPLOY_HTTPROOT)/blob/%: blob/% $(DEPLOY_HTTPROOT)/blob
mkdir -p $(@) cp -rv $< $@
cp -rv $(DEPLOY_BLOBS) $(@)
deploy: all $(DEPLOY_HTTPROOT)/blob $(DEPLOY_HTTPROOT)/blob:
mkdir -p $@
deploy: all $(DEPLOY_BLOBS)
cp -rv *.css *.html blog media \ cp -rv *.css *.html blog media \
$(DEPLOY_HTTPROOT) $(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"> <div class="fc">
<img src="andrea0s-plain-noextfonts.svg" /> <img src="/~targetdisk/blob/andrea0s-plain-noextfonts.svg" />
</div> </div>
</body> </body>