aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
authorWynn Wolf Arbor2019-10-30 19:11:16 +0100
committerWynn Wolf Arbor2020-02-04 14:33:13 +0100
commit00702a3b764139a28b4de89f48ec1e38f1c58150 (patch)
tree8ab9563b3d462a60335ec489d2371df474201d0d /Makefile
parentf72f05cd8e157e5f433dca21de2a8d7fb2411436 (diff)
downloadweltschmerz-00702a3b764139a28b4de89f48ec1e38f1c58150.tar.gz
Improve configuration handling
This commit improves and simplifies weltschmerz's configuration handling. Obtaining and parsing the KeyFile is split out into ConfigReader, which is fully agnostic of the specific configuration values. Config now contains all configuration values in the form of primitive types or class instances, and no longer delegates access to the KeyFile structure directly. This means that the configuration file is read once, and then kept in the Config instance. Indirectly this commit also fixes a bug where weltschmerz would segfault if one of the palette entries contained an invalid value.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ad973c7..5822595 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ VALAC ?= valac
weltschmerz: weltschmerz.vala terminal.vala config.vala resources.c
${VALAC} -X -lm --pkg posix --pkg gtk+-3.0 --pkg vte-2.91 --gresources resources.xml \
- weltschmerz.vala terminal.vala config.vala resources.c
+ weltschmerz.vala terminal.vala config.vala configreader.vala resources.c
resources.c: resources.xml terminal.ui terminal.css
glib-compile-resources $< --target=$@ --generate-source