summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2013-03-26 15:52:57 +0100
committerSebastian Reichel <sre@ring0.de>2013-03-26 15:52:57 +0100
commit7bfb48ef84384ff0460f273ea5841fba628d2a46 (patch)
tree898d019f33a554f03cac91495adcb7165344382e /Makefile
parent03a4e9f901cd36792de2172b4ebb8f6e852fe1cd (diff)
downloadserial-barcode-scanner-7bfb48ef84384ff0460f273ea5841fba628d2a46.tar.bz2
code restructure
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 8 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index 6836132..b80d992 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,11 @@
-SRC=src/main.vala src/device.vala src/scannersession.vala src/db.vala src/audio.vala src/web.vala src/graph-data.vala src/template.vala src/websession.vala src/admin.vala src/price.vapi src/ui/*.vala
-DEPS=--pkg posix --pkg linux --pkg libsoup-2.4 --pkg sqlite3 --pkg gee-1.0 --pkg gio-2.0 --pkg gstreamer-0.10 --pkg libarchive --pkg gpgme --pkg curses -X -lncursesw
-FLAGS=-X -lgpgme -X -w --enable-experimental --thread --vapidir=vapi
+all:
+ cd src && make all
-barcode-scanner: $(SRC)
- valac-0.16 --output $@ $(FLAGS) $(DEPS) $^
+clean:
+ cd src && make clean
+
+install:
+ cd src && make install
shop.db: sql/tables.sql sql/views.sql sql/trigger.sql
@for file in $^ ; do \
@@ -11,10 +13,4 @@ shop.db: sql/tables.sql sql/views.sql sql/trigger.sql
sqlite3 shop.db < $$file; \
done
-run: barcode-scanner
- ./barcode-scanner /dev/ttyS0
-
-clean:
- @rm -f barcode-scanner src/*.c
-
-.PHONY: clean install
+.PHONY: all clean install