Skip to content

Commit 2bf1e1c

Browse files
committed
Added 'make install'
1 parent c1ebb4e commit 2bf1e1c

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,17 @@ git version)
1313
cd pcb2gcodeGUI/
1414
qmake
1515
make
16+
sudo make install
1617

1718
Now just run the built executable with
1819

19-
./pcb2gcodeGUI
20+
pcb2gcodeGUI
21+
22+
You can also specify a different installation path with
23+
24+
qmake PREFIX=<prefix path>
25+
26+
pcb2gcodeGUI will be installed in PREFIX/bin
2027

2128
### Build on Debian Wheezy
2229
You need wheezy-backports: add this line to /etc/apt/sources.list

pcb2gcodeGUI.pro

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
#-------------------------------------------------
2-
#
3-
# Project created by QtCreator 2014-12-30T13:44:55
4-
#
5-
#-------------------------------------------------
6-
71
QT += core gui
82

93
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
104

5+
isEmpty(PREFIX) {
6+
PREFIX = /usr/local
7+
}
8+
119
TARGET = pcb2gcodeGUI
10+
target.path = $$PREFIX/bin
11+
12+
INSTALLS += target
13+
1214
TEMPLATE = app
1315

1416
SOURCES += main.cpp\
@@ -23,3 +25,4 @@ HEADERS += mainwindow.h \
2325

2426
FORMS += mainwindow.ui \
2527
outputwindow.ui
28+

0 commit comments

Comments
 (0)