From c263a1b293b867856ba24debc473faa8ae600780 Mon Sep 17 00:00:00 2001
From: Malin Freeborn <malinfreeborn@posteo.net>
Date: Thu, 4 Apr 2024 21:54:59 +0200
Subject: [PATCH] rearrange Makefile

---
 Makefile | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/Makefile b/Makefile
index fff0af80..3f352f20 100644
--- a/Makefile
+++ b/Makefile
@@ -1,22 +1,20 @@
 include config/vars
 
-output: $(BOOK).pdf
+.PHONY: all
+all: $(BOOK).pdf
 
 config/vars:
 	@git submodule update --init
 
 .PHONY: clean all
 
-qr.tex: README.md config/vars .switch-gls
+qr.tex: README.md config/vars | .switch-gls
 	@printf '\qrcode[height=.2\\textwidth]{$(QR_TARGET)}' > qr.tex
 .switch-gls:
-	@touch -r Makefile .switch-gls
+	@touch .switch-gls
 
 $(BOOK).pdf: $(wildcard *.tex) $(wildcard config/*.sty) | qr.tex
 	@$(COMPILER) main.tex
 
-.PHONY: all
-all: $(BOOK).pdf
-
 clean:
 	$(CLEAN)
-- 
GitLab