-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·45 lines (35 loc) · 1.53 KB
/
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
43
44
45
###############################################################################
# #
# Makefile #
# ======== #
# #
# Version: 1.3.2 #
# Date : 19.02.22 #
# Author : Peter Weissig #
# #
# For help or bug report please visit: #
# https://github.com/peterweissig/cpp_avr_downloader #
###############################################################################
NAME_GIT_THIS=main
PATH_BUILD=build/
PATH_SOURCE=src/
.PHONY : all build clean
all: build
build:
mkdir -p $(PATH_BUILD)
@echo ""
@echo "### starting cmake ###"
cd $(PATH_BUILD) && cmake ../$(PATH_SOURCE)
@echo ""
@echo "### starting build process ###"
cd $(PATH_BUILD) && make all
@echo ""
@echo "### copy executables ###"
ln --symbolic --force "$(PATH_BUILD)avr_downloader/avr_downloader"
ln --symbolic --force "$(PATH_BUILD)xbee_config/xbee_config"
@echo ""
@echo "### finished :-) ###"
clean:
@echo ""
@echo "### cleaning build ###"
rm -rf $(PATH_BUILD) avr_downloader xbee_config