diff options
author | Juhani Krekelä | 2021-06-26 22:23:29 +0300 |
---|---|---|
committer | Wolfgang Müller | 2021-06-28 16:22:10 +0200 |
commit | 2bfe0bc5ae22768f6435c64d986e70938635d8c2 (patch) | |
tree | 0c35e6a9a94251cc46f0835d4b40fc9c4a6d0127 /Makefile | |
parent | 32576fa8d4d44627e730d6c9ae28e37191404082 (diff) | |
download | weltschmerz-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-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 |