summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-09-12 17:07:46 +0200
committerYorhel <git@yorhel.nl>2019-09-12 17:54:50 +0200
commitadc906096f4644788b970e5ed936ca3e70bde2e8 (patch)
tree8d2aacf12b008820a5a331e648f915a67987cdfb /Makefile
parent752bc1724968a1f15b17ba9e607f2163997b4efa (diff)
Add VNDB::Config module and unified conf.pl config file
This gets rid of global.pl, config.pl and config3.pl and uses the cleaner config3.pl format for the config file. The config is easily accessible from anywhere by importing the new VNDB::Config module; The global $VNDB::S,O,M,ROOT variables have been removed. Sorry for all the churn...
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 5 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 06642add..2770ba05 100644
--- a/Makefile
+++ b/Makefile
@@ -25,7 +25,7 @@
ALL_KEEP=\
static/ch static/cv static/sf static/st \
data/log static/f static/v3 www www/feeds www/api \
- data/config.pl data/config3.pl \
+ data/conf.pl \
www/robots.txt static/robots.txt
ALL_CLEAN=\
@@ -67,11 +67,8 @@ static/ch static/cv static/sf static/st:
data/log www www/feeds www/api static/f static/v3:
mkdir -p $@
-data/config.pl:
- cp -n data/config_example.pl data/config.pl
-
-data/config3.pl:
- cp -n data/config3_example.pl data/config3.pl
+data/conf.pl:
+ cp -n data/conf_example.pl data/conf.pl
%/robots.txt: | www
echo 'User-agent: *' > $@
@@ -80,7 +77,7 @@ data/config3.pl:
%.gz: %
zopfli $<
-static/f/vndb.js: data/js/*.js lib/VNDB/Types.pm util/jsgen.pl data/config.pl data/global.pl | static/f
+static/f/vndb.js: data/js/*.js lib/VNDB/Types.pm util/jsgen.pl data/conf.pl | static/f
util/jsgen.pl
static/f/vndb.min.js: static/f/vndb.js
@@ -99,7 +96,7 @@ static/s/%/style.css: static/s/%/conf util/skingen.pl data/style.css data/icons/
static/s/%/style.min.css: static/s/%/style.css
perl -MCSS::Minifier::XS -e 'undef $$/; print CSS::Minifier::XS::minify(scalar <>)' <$< >$@
-elm3/Lib/Gen.elm: lib/VN3/*.pm lib/VN3/*/*.pm data/config3.pl
+elm3/Lib/Gen.elm: lib/VN3/*.pm lib/VN3/*/*.pm data/conf.pl
util/vndb3.pl elmgen >$@
static/v3/elm.js: elm3/*.elm elm3/*/*.elm elm3/Lib/Gen.elm | static/f