diff options
author | Sebastian Reichel <sre@ring0.de> | 2012-10-02 01:05:51 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2012-10-02 01:05:51 +0200 |
commit | 186049b3ed33f025eeb87eb34c19a28e1d5ba70a (patch) | |
tree | 5d892564001404fe979e18eac0e65dfcad65ed5e /Makefile | |
parent | 9713c98dbceb54d8d00c186ba8f41f3a5befcfd1 (diff) | |
download | serial-barcode-scanner-186049b3ed33f025eeb87eb34c19a28e1d5ba70a.tar.bz2 |
restructure code, switch from GTK to Web based UI
- move barcode generation scripts into generation/
- move code to src/
- remove database analysis from invoice/graph
- put database creation sql files into sql/
- remove glade builder file
- add new templates/ directory, which contains files
used by the Web-UI
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 22 |
1 files changed, 13 insertions, 9 deletions
@@ -1,16 +1,20 @@ -PREFIX=/usr/local +SRC=src/main.vala src/device.vala src/db.vala src/web.vala src/graph-data.vala src/template.vala src/session.vala src/price.vapi +DEPS=--pkg posix --pkg linux --pkg libsoup-2.4 --pkg sqlite3 --pkg gee-1.0 --pkg gmodule-2.0 --pkg gio-2.0 +FLAGS=-X -w -# 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 $^ +barcode-scanner: $(SRC) + valac-0.16 --output $@ $(FLAGS) $(DEPS) $^ -shop.db: create_db.sql - sqlite3 shop.db < create_db.sql +shop.db: sql/tables.sql sql/views.sql sql/trigger.sql + @for file in $^ ; do \ + echo "sqlite3 shop.db < $$file"; \ + sqlite3 shop.db < $$file; \ + done -install: barcode-scanner - install -m755 barcode-scanner $(DESTDIR)$(PREFIX)/bin/barcode-scanner +run: barcode-scanner + ./barcode-scanner /dev/ttyS0 clean: - rm -f barcode-scanner + @rm -f barcode-scanner src/*.c .PHONY: clean install |