diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 20 |
1 files changed, 8 insertions, 12 deletions
@@ -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 |