summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 2c7d1063b0a39f3ee35ed81177cef68138b474d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
PREFIX=/usr/local

# web.vala (currently disabled)
barcode-scanner: main.vala device.vala db.vala ui.vala
	valac-0.16 --output $@ --pkg posix --pkg linux --pkg libsoup-2.4 --pkg sqlite3 --pkg gtk+-3.0 --pkg gee-1.0 --pkg gmodule-2.0 --pkg gio-2.0 $^

shop.db: create_db.sql
	sqlite3 shop.db < create_db.sql

install: barcode-scanner
	install -m755 barcode-scanner $(DESTDIR)$(PREFIX)/bin/barcode-scanner

clean:
	rm -f barcode-scanner

.PHONY: clean install