2014-08-25 12:54:44 +02:00
|
|
|
# Version
|
2021-04-22 23:05:04 +02:00
|
|
|
TOXIC_VERSION = 0.11.0
|
2014-10-16 20:26:00 +02:00
|
|
|
REV = $(shell git rev-list HEAD --count 2>/dev/null || echo -n "error")
|
|
|
|
ifneq (, $(findstring error, $(REV)))
|
2015-03-16 13:16:03 +01:00
|
|
|
VERSION = $(TOXIC_VERSION)
|
2014-10-16 20:26:00 +02:00
|
|
|
else
|
2015-03-16 13:16:03 +01:00
|
|
|
VERSION = $(TOXIC_VERSION)_r$(REV)
|
2014-10-15 09:52:13 +02:00
|
|
|
endif
|
2014-08-25 12:54:44 +02:00
|
|
|
|
|
|
|
# Project directories
|
2015-03-21 18:33:51 +01:00
|
|
|
BUILD_DIR = $(BASE_DIR)/build
|
2014-08-25 12:54:44 +02:00
|
|
|
DOC_DIR = $(BASE_DIR)/doc
|
|
|
|
SRC_DIR = $(BASE_DIR)/src
|
|
|
|
SND_DIR = $(BASE_DIR)/sounds
|
|
|
|
MISC_DIR = $(BASE_DIR)/misc
|
|
|
|
|
|
|
|
# Project files
|
|
|
|
MANFILES = toxic.1 toxic.conf.5
|
2016-09-20 06:00:09 +02:00
|
|
|
DATAFILES = nameservers toxic.conf.example
|
2014-10-21 10:31:30 +02:00
|
|
|
DESKFILE = toxic.desktop
|
2014-10-01 06:53:45 +02:00
|
|
|
SNDFILES = ToxicContactOnline.wav ToxicContactOffline.wav ToxicError.wav
|
2014-10-02 01:38:09 +02:00
|
|
|
SNDFILES += ToxicRecvMessage.wav ToxicOutgoingCall.wav ToxicIncomingCall.wav
|
2014-10-01 06:53:45 +02:00
|
|
|
SNDFILES += ToxicTransferComplete.wav ToxicTransferStart.wav
|
2014-08-25 12:54:44 +02:00
|
|
|
|
|
|
|
# Install directories
|
2018-10-02 23:31:14 +02:00
|
|
|
PREFIX ?= /usr/local
|
2014-08-25 12:54:44 +02:00
|
|
|
BINDIR = $(PREFIX)/bin
|
|
|
|
DATADIR = $(PREFIX)/share/toxic
|
2018-10-02 23:31:14 +02:00
|
|
|
MANDIR ?= $(PREFIX)/share/man
|
2014-10-21 10:31:30 +02:00
|
|
|
APPDIR = $(PREFIX)/share/applications
|
2015-07-14 07:27:07 +02:00
|
|
|
|
|
|
|
# Platform tools
|
|
|
|
PKG_CONFIG = pkg-config
|