diff --git a/GNUmakefile b/GNUmakefile index 00b1379..1311bb1 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -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) diff --git a/andrea0s-plain-noextfonts.svg b/blob/andrea0s-plain-noextfonts.svg similarity index 100% rename from andrea0s-plain-noextfonts.svg rename to blob/andrea0s-plain-noextfonts.svg diff --git a/index.tail.html b/index.tail.html index a94746d..99e4cda 100644 --- a/index.tail.html +++ b/index.tail.html @@ -1,5 +1,5 @@