aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
authorJuhani Krekelä2021-06-26 22:23:29 +0300
committerWolfgang Müller2021-06-28 16:22:10 +0200
commit2bfe0bc5ae22768f6435c64d986e70938635d8c2 (patch)
tree0c35e6a9a94251cc46f0835d4b40fc9c4a6d0127 /Makefile
parent32576fa8d4d44627e730d6c9ae28e37191404082 (diff)
downloadweltschmerz-2bfe0bc5ae22768f6435c64d986e70938635d8c2.tar.gz
Make Makefile portable
Currently weltschmerz's make-based build system relies on GNU make extensions. Change it to only use POSIX and other nearly universally implemented features. A small downside to this patch is that .po files must be listed in the Makefile manually.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d00146a..5346a0d 100644
--- a/Makefile
+++ b/Makefile
@@ -6,9 +6,12 @@ LOCALEDIR ?= ${DATAROOTDIR}/locale
MANDIR ?= ${DATAROOTDIR}/man
VALAC ?= valac
-POFILES := $(wildcard po/*.po)
+POFILES := po/de.po
MOFILES := $(POFILES:.po=.mo)
+.SUFFIXES:
+.SUFFIXES: .po .mo
+
all: weltschmerz weltschmerz.1 weltschmerz.desktop $(MOFILES)
weltschmerz: weltschmerz.vala terminal.vala config.vala configreader.vala utils.vala resources.c
@@ -19,7 +22,7 @@ weltschmerz: weltschmerz.vala terminal.vala config.vala configreader.vala utils.
resources.c: resources.xml terminal.ui terminal.css
glib-compile-resources $< --target=$@ --generate-source
-%.mo: %.po
+.po.mo:
msgfmt $< -o $@
weltschmerz.desktop: weltschmerz.desktop.in