-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile.conf
64 lines (39 loc) · 1.04 KB
/
Makefile.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#
# Default variables for Makefiles
#
# Shell program
SHELL := bash
# Gets from shell the operating system
OS := $(shell uname -s)
# String for the MAC OS X operationg system
MAC_OS_X_OSTYPE := Darwin
#
# Color prefix for Linux based distributions
#
COLOR_PREFIX := e
# echo command line options for Linux based distributions
ECHO_OPTS := -en
#
# If the operating system is MAC OS X, the colors prefix and echo options
# must be different
#
ifeq ($(OS), $(MAC_OS_X_OSTYPE))
COLOR_PREFIX := 033
endif
# Color definition for print purpose
BROWN=\$(COLOR_PREFIX)[0;33m
BLUE=\$(COLOR_PREFIX)[1;34m
END_COLOR=\$(COLOR_PREFIX)[0m
# Project name
PROJECT_NAME := jsoncat
# Project root directory
PROJECT_ROOT := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
# Get the version from the source file
VERSION := $(shell grep "VERSION" $(PROJECT_ROOT)/src/messages.h \
| cut -d ' ' -f 3 | tr -d '"')
# Documentation directory
DOCS := docs
# Manpages OS directory
MANPAGE_OS_DIR := /usr/man/man1
# Manpage file name
MANPAGE := jsoncat.1