summaryrefslogtreecommitdiff
path: root/src/web/lang/Makefile
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-04-05 15:00:27 -0400
committerFreya Murphy <freya@freyacat.org>2024-04-05 15:00:27 -0400
commit4c8d58b646ac62e67fc34c12f8cad51e7512bee3 (patch)
tree432351cce0acccd9a986872f7ea020dae14b0c71 /src/web/lang/Makefile
parentuser menu (diff)
downloadxssbook2-4c8d58b646ac62e67fc34c12f8cad51e7512bee3.tar.gz
xssbook2-4c8d58b646ac62e67fc34c12f8cad51e7512bee3.tar.bz2
xssbook2-4c8d58b646ac62e67fc34c12f8cad51e7512bee3.zip
add en_CAT makefile and use ucfirst/ucwords
Diffstat (limited to 'src/web/lang/Makefile')
-rw-r--r--src/web/lang/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/web/lang/Makefile b/src/web/lang/Makefile
new file mode 100644
index 0000000..fd4ca9c
--- /dev/null
+++ b/src/web/lang/Makefile
@@ -0,0 +1,19 @@
+#
+# en_CAT generator from en_US
+# uwuify and awk required
+#
+
+LANG_SRC = $(shell find en_US -type f)
+LANG_OBJ = $(patsubst en_US/%,en_CAT/%,$(LANG_SRC))
+
+.PHONY: all
+
+all: $(LANG_OBJ)
+
+$(LANG_OBJ): en_CAT/% : en_US/%
+ @printf "\033[35m UWU \033[0m%s\n" $<
+ @mkdir -p $(@D)
+ @./_bin/transpile.sh $< $@
+
+clean:
+ @rm -fr "en_CAT"