2013-10-15 19:54:15 -07:00
|
|
|
# Generate the ssrf-version.h file
|
2013-10-10 17:07:25 +03:00
|
|
|
macx: VER_OS = darwin
|
|
|
|
unix: !macx: VER_OS = linux
|
|
|
|
win32: VER_OS = win
|
2015-01-30 18:56:12 +02:00
|
|
|
|
|
|
|
# use a compiler target that has a phony input and is forced on each `make` invocation
|
|
|
|
# the resulted file is not a link target and is cleared with `make clean`
|
|
|
|
PHONY_DEPS = .
|
|
|
|
version_h.input = PHONY_DEPS
|
|
|
|
version_h.depends = FORCE
|
|
|
|
version_h.output = $$VERSION_FILE
|
|
|
|
version_h.commands = cd $$PWD && sh $$PWD/scripts/write-version $$VERSION_FILE $$VERSION $$VER_OS
|
2015-02-15 21:27:24 +02:00
|
|
|
silent: version_h.commands = @echo Checking $$VERSION_FILE && $$version_h.commands
|
2015-01-30 18:56:12 +02:00
|
|
|
version_h.CONFIG += no_link
|
|
|
|
QMAKE_EXTRA_COMPILERS += version_h
|
|
|
|
QMAKE_CLEAN += $$VERSION_FILE
|