forked from cory/tildefriends
build: I wanted to get the binary out of the makefile to appease F-Droid, and one thing lead to another.
This commit is contained in:
parent
50fef2edfa
commit
7ffc148358
23
GNUmakefile
23
GNUmakefile
@ -3,7 +3,7 @@
|
||||
MAKEFLAGS += --warn-undefined-variables
|
||||
MAKEFLAGS += --no-builtin-rules
|
||||
|
||||
## [36;1m== Tilde Friends build. ==[m
|
||||
## == Tilde Friends build. ==
|
||||
##
|
||||
## This is a list of all supported build targets.
|
||||
##
|
||||
@ -11,10 +11,10 @@ MAKEFLAGS += --no-builtin-rules
|
||||
## parallel (faster).
|
||||
##
|
||||
## Useful variables to override:
|
||||
## [35mCC[m Compiler.
|
||||
## [35mAS[m Assembler.
|
||||
## [35mLD[m Linker.
|
||||
## [35mANDROID_SDK[m Path to the Android SDK.
|
||||
## CC := Compiler.
|
||||
## AS := Assembler.
|
||||
## LD := Linker.
|
||||
## ANDROID_SDK := Path to the Android SDK.
|
||||
|
||||
VERSION_CODE := 30
|
||||
VERSION_NUMBER := 0.0.25-wip
|
||||
@ -1248,9 +1248,18 @@ help: ## Display this help message.
|
||||
@awk \
|
||||
-F: \
|
||||
-vG=$$(tput setaf 2) \
|
||||
-vO=$$(tput setaf 3) \
|
||||
-vB=$$(tput setaf 4) \
|
||||
-vM=$$(tput setaf 5) \
|
||||
-vC=$$(tput setaf 6) \
|
||||
-vR=$$(tput sgr0) ' \
|
||||
/^##/ { sub(/^##\s?/, ""); printf "%s%s%s\n", G, $$0, R } \
|
||||
/^[[:alnum:]-]+:.*##/ { sub(/:.*##\s?/, ":"); printf "%s%-20s%s %s\n", G, $$1, R, $$2 } \
|
||||
/^## ==.*==$$/ { sub(/^## ?/, ""); printf "%s%s%s\n", C, $$0, R } \
|
||||
/^##.*:\=.*/ { sub(/^## ?/, ""); sub(/:\=/, ":"); printf " %s%-20s%s %s%s%s\n", M, $$1, R, O, $$2, R } \
|
||||
/^##/ { sub(/^## ?/, ""); print $$0 } \
|
||||
/^[[:alnum:]-]+:.*##/ { \
|
||||
sub(/:.*##\s?/, ":"); \
|
||||
printf " %s%-20s%s %s%s%s\n", G, $$1, R, O, $$2, R \
|
||||
} \
|
||||
' < $(filter-out %.d,$(MAKEFILE_LIST))
|
||||
@echo "" # Blank line.
|
||||
.PHONY: help
|
||||
|
Loading…
Reference in New Issue
Block a user