-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
executable file
·32 lines (25 loc) · 994 Bytes
/
Makefile
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
#------------------------------------------------------------------------------
# exports:
#------------------------------------------------------------------------------
export CFLAGS = -Wall -Werror -g
export LFLAGS = -pthread
export bin-dir = $(basedir)/usr/sbin
export cfg-dir = $(basedir)/etc/BlackBird
#------------------------------------------------------------------------------
# all:
#------------------------------------------------------------------------------
all:
if [ ! -d 'bin' ]; then mkdir bin; fi
make -C src
#------------------------------------------------------------------------------
# clean:
#------------------------------------------------------------------------------
clean:
if [ -d 'bin' ]; then rm -rf bin; fi
make -C src clean
#------------------------------------------------------------------------------
# install:
#------------------------------------------------------------------------------
install:
make -C src install
mkdir -p $(cfg-dir)