From 3c33fc5c15990e24b2ce55bb48cdc507973ebd7e Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: May 24 2019 00:03:54 +0000 Subject: Create directory for new content - Previously, when a new localized content was produced the process failed because the directory where the final content should be stored didn't exist. This update changes the Makefile to create the directory of new localized content when it doesn't exist. --- diff --git a/html/Makefile b/html/Makefile index e6b5233..76a1ae3 100644 --- a/html/Makefile +++ b/html/Makefile @@ -76,7 +76,10 @@ $(localedir)/$(lang).po: $(localedir)/$(lang).pot #====================================================================== # Content #====================================================================== -$(package)/$(lang)/index.html: $(localedir)/$(lang).po $(package)/index.tpl.html +$(package)/$(lang): + mkdir -p $(package)/$(lang) + +$(package)/$(lang)/index.html: $(package)/$(lang) $(localedir)/$(lang).po $(package)/index.tpl.html xmllint -noout $(package)/index.tpl.html xml2po -l $(lang) -p $(localedir)/$(lang).po -o $(package)/$(lang)/index.html $(package)/index.tpl.html sed -i 's///' $(package)/$(lang)/index.html