aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 13 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 2bdf4bd..14d501d 100644
--- a/Makefile
+++ b/Makefile
@@ -50,22 +50,24 @@ derived-assets = \
all: public
-jekyll-deps: $(derived-assets)
-
$(lilypond.pdf): $(lilypond.midi)
-torrents-files.txt: $(torrents-in)
+torrent-files.txt: $(torrents-in)
echo $(torrents-in) | tr ' ' '\n' > $@
-torrent-files.mk: torrents-files.txt
- printf 'torrent-files = \\\n' > $@
- sed -e 's/^/\t/' -e 's/$$/.torrent \\/' < torrents-files.txt >> $@
+files.mk: torrent-files.txt
+ printf '' > $@
+ printf 'torrent-files = \\\n' >> $@
+ sed -e 's/^/\t/' -e 's/$$/.torrent \\/' < torrent-files.txt >> $@
printf '\n\n' >> $@
- awk '{ printf "%s.torrent: %s\n", $$1, $$1 }' torrents-files.txt >> $@
-$(torrents): torrent-files.mk
+deps.mk: torrent-files.txt
+ printf '' > $@
+ awk '{ printf "%s.torrent: %s\n", $$1, $$1 }' torrent-files.txt >> $@
+
+$(torrents): files.mk deps.mk
$(MAKE) -f Makefile.dynamic torrents
static/favicon.png: static/favicon.svg
@@ -75,6 +77,7 @@ favicon.ico: static/favicon.svg
convert static/favicon.svg $@
+
check:
sh aux/assert-shellcheck.sh
sh aux/workflow/assert-todos.sh
@@ -88,9 +91,9 @@ clean:
rm -rf \
public/ \
$(derived-assets) \
- torrents-files.txt torrent-files.mk
+ torrent-files.txt files.mk deps.mk
-public: jekyll-deps
+public: $(derived-assets)
jekyll build
publish: public