forked from IBM/clai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (31 loc) · 856 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
33
34
35
36
37
38
39
40
41
42
#
# Copyright (C) 2020 IBM. All Rights Reserved.
#
# See LICENSE.txt file in the root directory
# of this source tree for licensing information.
#
# Generic Makefile
#
# Author: Dan FitzGerald
repo=`echo "clai/__version__.py __title__" | utils/getVersionInfo.sh`
version=`echo "clai/__version__.py __version__" | utils/getVersionInfo.sh`
make_cmd=`ps -o comm | grep make`
makefile=`ps -o comm | grep make | utils/getMakeType.sh`
intro:
@echo "$(repo) v$(version)"
init-test:
@$(make_cmd) -f $(makefile) init-test
clean: intro
@$(make_cmd) -f $(makefile) clean
test: intro
@$(make_cmd) -f $(makefile) test
dev: intro
@$(make_cmd) -f $(makefile) dev
install: intro
@$(make_cmd) -f $(makefile) install
uninstall: intro
@$(make_cmd) -f $(makefile) uninstall
MAKE:
intro
install
.PHONY: intro init-test clean test dev install uninstall