diff options
author | Sebastian Reichel <sre@ring0.de> | 2018-06-29 00:58:19 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2018-07-15 22:59:57 +0200 |
commit | 22df08c29f6e4566d418e2a80a8279303406a733 (patch) | |
tree | decb3029284b966635855e1684bc07ef9d3c1a6f /Makefile | |
parent | 17560f8bf49a0be2e0b490159e29f4894fe12cba (diff) | |
download | serial-barcode-scanner-22df08c29f6e4566d418e2a80a8279303406a733.tar.bz2 |
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
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 26 |
1 files changed, 11 insertions, 15 deletions
@@ -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 \ |