summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2012-05-16 21:57:44 +0200
committerSebastian Reichel <sre@ring0.de>2012-05-16 21:57:44 +0200
commit40db69e78d55eceeb0d6ea851ff756e2508bd618 (patch)
treecf031ea13836844021eb347ebe519983378a754f /Makefile
parenta3e950e76313585942e1ea3abf2c013d8e04c0e6 (diff)
downloadserial-barcode-scanner-40db69e78d55eceeb0d6ea851ff756e2508bd618.tar.bz2
add database creation script
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c1ad962..a5fff6e 100644
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,9 @@ PREFIX=/usr/local
barcode-scanner: main.vala device.vala db.vala
valac-0.16 --output $@ --pkg posix --pkg linux --pkg libsoup-2.4 --pkg sqlite3 $^
+shop.db: create_db.sql
+ sqlite3 shop.db < create_db.sql
+
install: barcode-scanner
install -m755 barcode-scanner $(DESTDIR)$(PREFIX)/bin/barcode-scanner