summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: cdf1b8ec3a7039ad014b309169d6746e0600514e (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 $^

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