aboutsummaryrefslogtreecommitdiff
path: root/lumina-checkpass
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2016-01-11 15:51:52 -0500
committerKen Moore <moorekou@gmail.com>2016-01-11 15:51:52 -0500
commit4a94520f2e6eb55f9d651321b15ed638404a66bb (patch)
tree8d4b3f7d8ec2cf262e4cfc595ab86768b3820f81 /lumina-checkpass
parentStart the work of abstracting out the OS-detection/build system from the indi... (diff)
downloadlumina-4a94520f2e6eb55f9d651321b15ed638404a66bb.tar.gz
lumina-4a94520f2e6eb55f9d651321b15ed638404a66bb.tar.bz2
lumina-4a94520f2e6eb55f9d651321b15ed638404a66bb.zip
Large cleanup of the Lumina project files and OS-detection/support systems.
1) Setup all the subprojects to use the new OS-detect.pri subfile 2) Automatically detect/set the build datetime string for the project when qmake is run. 3) Automatically read/embed the current GIT revision into the Lumina version string 4) Remove the old QtConfig shortcut function from the LuminaOS class (and all templates).
Diffstat (limited to 'lumina-checkpass')
-rw-r--r--lumina-checkpass/lumina-checkpass.pro19
1 files changed, 6 insertions, 13 deletions
diff --git a/lumina-checkpass/lumina-checkpass.pro b/lumina-checkpass/lumina-checkpass.pro
index 387246d0..ea9311d6 100644
--- a/lumina-checkpass/lumina-checkpass.pro
+++ b/lumina-checkpass/lumina-checkpass.pro
@@ -1,26 +1,19 @@
+include("$${PWD}/../OS-detect.pri")
+
TEMPLATE = app
#Don't need any Qt - just a simple C program
QT =
CONFIG += console
TARGET = lumina-checkpass
-isEmpty(PREFIX) {
- PREFIX = /usr/local
-}
-target.path = $$DESTDIR$$PREFIX/sbin
-
-isEmpty(LIBPREFIX) {
- LIBPREFIX = $$PREFIX/lib
-}
+target.path = $$DESTDIR$${PREFIX}/sbin
-LIBS += -L$$LIBPREFIX -lpam
+LIBS += -lpam
SOURCES += main.c
-INCLUDEPATH += $$PREFIX/include
-
-perms.path = $$DESTDIR$$PREFIX/sbin
-perms.extra = "chmod 4555 $$DESTDIR$$PREFIX/sbin/lumina-checkpass"
+perms.path = $$DESTDIR$${PREFIX}/sbin
+perms.extra = "chmod 4555 $$DESTDIR$${PREFIX}/sbin/lumina-checkpass"
INSTALLS += target perms
bgstack15