The Spell Decorator
Dynamically attach additional magical properties to an existing make target.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Decorator
ARCANUM SCHOOL: Transmutation // Meta-Weaving
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
# The core component
.PHONY: base_spell
base_spell:
@echo "Casting basic magic missile."
# Decorator 1: Empower
.PHONY: empower
empower:
@echo "Applying Empower metamagic (+50% damage)..."
# Decorator 2: Maximize
.PHONY: maximize
maximize:
@echo "Applying Maximize metamagic (max variables)..."
# We construct the decorated spell by chaining prerequisites
# E.g., make cast_decorated DECORATORS="empower maximize"
DECORATORS ?=
.PHONY: cast_decorated
cast_decorated: $(DECORATORS) base_spell
@echo "Decorated spell sequence complete."
Runic Tags:
#makefile
#structural
#decorator
#metamagic