Skip to content

Commit

Permalink
make help: show generate-Makefile.ci
Browse files Browse the repository at this point in the history
generate-Makefile.ci is the only target interesting to the user containing uppercase and a dot.
Instead of matching all such targets with sed, generate-Makefile.ci is matched explicitly, to avoid showing internal targets.
  • Loading branch information
mguetschow committed Dec 18, 2023
1 parent 208790a commit 292393c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,8 @@ ifneq (, $(filter all flash, $(if $(MAKECMDGOALS), $(MAKECMDGOALS), all)))
endif

help:
@$(MAKE) -qp | sed -ne 's/\(^[a-z][a-z_-]*\):.*/\1/p' | sort | uniq
# filter all targets starting with lowercase and containing lowercase letters, hyphens, or underscores; explicitly include generate-Makefile.ci
@$(MAKE) -qp | sed -ne 's/\(^[a-z][a-z_-]*\|generate-Makefile.ci\):.*/\1/p' | sort -u

ifeq (iotlab-m3,$(BOARD))
ifneq (,$(filter iotlab-%,$(MAKECMDGOALS)))
Expand Down

0 comments on commit 292393c

Please sign in to comment.