-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
17 lines (16 loc) · 850 Bytes
/
Makefile
File metadata and controls
17 lines (16 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
##################################################################
# General ########################################################
##################################################################
.PHONY: help
# help:
# Print this help message
help:
@awk 'BEGIN{H="\033[1;34m";C="\033[1;32m";R="\033[0m"} /^# [[:alpha:]].*#+$$/{h=$$0;gsub(/^# */,"",h);gsub(/ *#+$$/,"",h);printf "%s%s:%s\n",H,h,R;next} /^# /{d=substr($$0,3);next} d&&/^[[:alpha:]][[:alnum:]_-]+:/{c=substr($$1,1,length($$1)-1);printf " %s%-25s%s %s\n",C,c,R,d;next}{d=""}' $(MAKEFILE_LIST)
##################################################################
# Setup ##########################################################
##################################################################
.PHONY: setup
# setup:
# Setup your environment
setup:
(cd env && bash setup.sh)