Skip to content

Commit

Permalink
build: Move print-help target to others
Browse files Browse the repository at this point in the history
  • Loading branch information
itislu committed Aug 25, 2024
1 parent 2a6bfd6 commit db91bba
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,12 @@ help-fclean :
help-ffclean :
echo "Remove build artifacts and the executable without checking for unknown files."

help-print :
echo "Usage: make print-<\\$(STY_UND)variable name\\$(STY_RES)>"
echo
echo "Print the value of a Makefile variable by appending the variable name to print-..."
echo "Useful for Makefile debugging."

help-help :
echo "Usage: make help-<\\$(STY_UND)target\\$(STY_RES)> | make <\\$(STY_UND)target\\$(STY_RES)>-help"
echo
Expand Down Expand Up @@ -535,12 +541,6 @@ endif

# *************************** MAKEFILE DEBUGGING ***************************** #

help-print :
echo "Usage: make print-<\\$(STY_UND)variable name\\$(STY_RES)>"
echo
echo "Print the value of a Makefile variable by appending the variable name to print-..."
echo "Useful for Makefile debugging."

print-% :
echo $* = $($*)

Expand Down

0 comments on commit db91bba

Please sign in to comment.