Skip to content

Commit 4f11895

Browse files
committed
Add a target to printenv in Makefile.utility
1 parent 0b41283 commit 4f11895

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Makefile.utility

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
### ==========================================================================
2-
### $Id$ 2025-05-12 Matthew Sheets
2+
### $Id$ 2025-05-24 Matthew Sheets
33
### FILE: Makefile.utility - Useful project-independent make targets
44
### Includes support for
55
### * Stow: Makes the process of managing manual installs/uninstalls cleaner
66
### https://www.gnu.org/software/stow/
77
### * Debugging and troubleshooting
88
### - list-variables target: Outputs defined make variables & their values
99
### - submake-list target: Outputs list-variables for a submake
10+
### - list-env target: Outputs environment variables
1011
### --------------------------------------------------------------------------
1112

1213
# ----------------------------------------------------------------------------
@@ -60,14 +61,17 @@ list-variables:
6061
$(info $(shell printf "%-20s" "$(v)")= $(value $(v))) \
6162
)
6263

64+
list-env:
65+
@printenv
66+
6367
submake-list:
6468
$(MAKE) list-variables
6569

6670

6771
# ----------------------------------------------------------------------------
6872
# Declare "phony" targets
6973
# ----------------------------------------------------------------------------
70-
.PHONY: stow restow unstow stow-check-package list-variables submake-list
74+
.PHONY: stow restow unstow stow-check-package list-variables list-env submake-list
7175

7276
### --------------------------------------------------------------------------
7377
### End of FILE: Makefile.utility

0 commit comments

Comments
 (0)