Skip to content

Commit

Permalink
Cleaner fix for printing make rules without setting an apparently unr…
Browse files Browse the repository at this point in the history
…elated variable.
  • Loading branch information
culler committed May 6, 2024
1 parent 24f2545 commit 64b11b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build/make/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
# obscure the substance of the actual rules, this file can be debugged by
# running:
#
# $ make -f build/make/Makefile -n DEBUG_RULES=1 SAGE_PKGCONFIG=1
# $ make -f build/make/Makefile -n DEBUG_RULES=1
#
# This will not actually run any rules (the -n flag) but will print all the
# rules generated from the templates.

# Always use bash for make rules
SHELL = @SHELL@

ifndef DEBUG_RULES
# Check a variable that is only set in build/make/install, but not in sage-env, for example
ifndef SAGE_PKGCONFIG
# Set by build/bin/sage-sdist, which invokes the Makefile directly in
Expand All @@ -25,6 +26,7 @@ ifndef SAGE_SPKG_COPY_UPSTREAM
$(error This Makefile needs to be invoked by build/make/install)
endif
endif
endif

# Directory to keep track of which packages are installed - relative to installation prefix
SPKG_INST_RELDIR = var/lib/sage/installed
Expand Down

0 comments on commit 64b11b8

Please sign in to comment.