From 22df08c29f6e4566d418e2a80a8279303406a733 Mon Sep 17 00:00:00 2001 From: Sebastian Reichel Date: Fri, 29 Jun 2018 00:58:19 +0200 Subject: build: switch to meson buildsystem We build the project with 'meson' now instead of using custom configure script + GNU Makefiles. To build the project, go to the project root directory and use the following commands: Building: meson build cd build ninja Update Language Files: ninja shopsystem-pot ninja shopsystem-update-po Install: DESTDIR=./tmp ninja install --- Makefile | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ee08cef..2b0da03 100644 --- a/Makefile +++ b/Makefile @@ -1,24 +1,20 @@ -all: - @cd src && make --no-print-directory all +all: compile gettext -gettext: locale/de/LC_MESSAGES/shopsystem.mo +build: + meson build -locale/de/LC_MESSAGES/shopsystem.mo: locale/de.po - install -d locale/de/LC_MESSAGES/ - msgfmt -o $@ $< +compile: build + cd build && ninja -locale/%.po: locale/messages.pot - msgmerge -N --backup=off --update $@ $< +gettext: build + cd build && ninja shopsystem-pot + cd build && ninja shopsystem-update-po -locale/messages.pot: */*/*.vala - xgettext --language=vala --from-code=utf-8 --keyword=_ --escape --sort-output -o $@ */*/*.vala +install: build + cd build && DESTDIR=`pwd`/tmpinst ninja install clean: - @cd src && make --no-print-directory clean - -install: - @cd src && make --no-print-directory install - @cd dbus && make --no-print-directory install + rm -rf build shop.db: sql/tables.sql sql/views.sql sql/trigger.sql @for file in $^ ; do \ -- cgit v1.2.3