Commit 35c44dad authored by Hugo Hörnquist's avatar Hugo Hörnquist

Add main Makefile to project.

parent 22a7c1f1
.PHONY: all clean instal
all: kassa admin
# This doesn't clean bad_com build dir
clean:
-rm -rf build-{kassa,admin}
-rm stupan-{kassa,admin}
-rm libcom.so
install:
-mkdir -p /opt/stupan
cp stupan-kassa stupan-admin /opt/stupan/
libcom.so:
make -C bad_com
kassa: libcom.so
-@mkdir build-kassa
cd build-kassa; qmake ../kassa/StupanKassa.pro
make -C build-kassa
cp build-kassa/kassa stupan-kassa
admin: libcom.so
-@mkdir build-admin
cd build-admin; qmake ../admin/StupanAdmin.pro
make -C build-admin
cp build-admin/admin stupan-admin
......@@ -8,7 +8,7 @@ QT += core gui sql printsupport
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = StupanAdmin
TARGET = admin
TEMPLATE = app
......
......@@ -8,7 +8,7 @@ QT += core gui sql
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = StupanKassa
TARGET = kassa
TEMPLATE = app
SOURCES += main.cpp\
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment