-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
36 lines (34 loc) · 1.71 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
#==================================================================================================#
# MAKEFILE
#==================================================================================================#
#--------------------------------------------------------------------------------------------------#
all: main
#--------------------------------------------------------------------------------------------------#
#
#--------------------------------------------------------------------------------------------------#
main:
@cd src && $(MAKE) -s -j -f makefile
#--------------------------------------------------------------------------------------------------#
#
#--------------------------------------------------------------------------------------------------#
rebuild: clean all
#--------------------------------------------------------------------------------------------------#
#
#--------------------------------------------------------------------------------------------------#
run:
@./bin/main
#--------------------------------------------------------------------------------------------------#
#
#--------------------------------------------------------------------------------------------------#
clean:
@printf "%`tput cols`s"|tr ' ' '-'
@printf "CLEANING UP THE PROJECT...\n"
@printf "%`tput cols`s"|tr ' ' '-'
@cd src && $(MAKE) -s clean
@rm -f *~ */*~ */*/*~
@printf "%`tput cols`s"|tr ' ' '-'
@printf "CLEANING UP THE PROJECT... DONE!\n"
@printf "%`tput cols`s"|tr ' ' '-'
#--------------------------------------------------------------------------------------------------#
.PHONY: all main rebuild run clean
#--------------------------------------------------------------------------------------------------#