aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRafael Laboissière <rafael@laboissiere.net>2025-09-06 17:22:30 +0200
committerRafael Laboissière <rafael@laboissiere.net>2025-09-06 17:22:30 +0200
commit326ead0c757a476d429bff29300f3c7a3b734105 (patch)
tree03232b122115f637ec9d403de589045464fccc16 /Makefile
parent299a70ecae834e7924247bd1b19476f714a0e7a4 (diff)
Centralize definition of distribution codename
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 721d7a6..adf9a40 100644
--- a/Makefile
+++ b/Makefile
@@ -3,11 +3,12 @@ GPGKEY = praat.gpg.key
WWWDIR = /var/www/praat
WWWHOST = praat.cefala.org
APACHEDIR = /etc/apache2/sites-available
-BUILD = www/$(INDEX) apache/praat.conf
+BUILD = www/$(INDEX) apache/praat.conf repo/conf/distributions
REPODATA = repo/db repo/dists repo/pool
REPOHOST = www.cefala.org
USER = rlaboiss
TODAY = $(shell date "+%Y-%m-%d %H:%M:%S %Z")
+DISTRIB = trixie
build-stamp: $(BUILD)
mkdir -p $(REPODATA)
@@ -26,7 +27,12 @@ install-www: build-stamp
sudo service apache2 restart
%: %.in
- sed -e 's|@WWWHOST@|$(WWWHOST)|;s|@WWWDIR@|$(WWWDIR)|;s|@INDEX@|$(INDEX)|;s|@GPGKEY@|$(GPGKEY)|;s|@TODAY@|$(TODAY)|' $< > $@
+ sed -e 's|@WWWHOST@|$(WWWHOST)|;' \
+ -e 's|@WWWDIR@|$(WWWDIR)|;' \
+ -e 's|@INDEX@|$(INDEX)|;' \
+ -e 's|@GPGKEY@|$(GPGKEY)|;' \
+ -e 's|@TODAY@|$(TODAY)|;' \
+ -e 's|@DISTRIB@|$(DISTRIB)|;' $< > $@
.PHONY: clean
clean: