From 607852518c410479900d6e98c9327f0d01565c03 Mon Sep 17 00:00:00 2001 From: Marius Tolzmann Date: Mon, 15 Dec 2014 15:56:15 +0100 Subject: [PATCH] Makefile: add special PATH when compiling for mariux64 --- Makefile | 7 +++++++ os-release | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100755 os-release diff --git a/Makefile b/Makefile index c6c2cf4d..13fbddb5 100644 --- a/Makefile +++ b/Makefile @@ -54,6 +54,13 @@ CFLAGS_MXQ_INITIAL_PATH = -DMXQ_INITIAL_PATH=\"$(MXQ_INITIAL_PATH)\" MYSQL_CONFIG = mysql_config +OS_RELEASE = $(shell ./os-release) + +# special defaults for mariux64 +ifeq (${OS_RELEASE}, mariux64) + MXQ_INITIAL_PATH := ${MXQ_INITIAL_PATH}:/usr/local/package/bin +endif + CFLAGS_MYSQL += $(shell $(MYSQL_CONFIG) --cflags) LDLIBS_MYSQL += $(shell $(MYSQL_CONFIG) --libs) diff --git a/os-release b/os-release new file mode 100755 index 00000000..fedf572d --- /dev/null +++ b/os-release @@ -0,0 +1,7 @@ +#!/bin/bash + +if [ -e /etc/os-release ] ; then + . /etc/os-release +fi + +echo ${ID:=unknown}