|
Warning: this is an htmlized version!
The original is here, and the conversion rules are here. |
# This file:
# http://anggtwu.net/MAKE/demo-1.gnumake.html
# http://anggtwu.net/MAKE/demo-1.gnumake
# (find-angg "MAKE/demo-1.gnumake")
# Author: Eduardo Ochs <eduardoochs@gmail.com>
# Version: 2022jan04 / 2025jun24
# See: http://anggtwu.net/eepitch.html
# http://anggtwu.net/eev-make.html
# HSubs: http://anggtwu.net/2022-eev-make-0.html#00:00
#
# This is a demo of how to write test blocks in languages that don't
# have multi-line comments. To try this demo it you need to redefine
# `eepitch-preprocess-line', that by default is a no-op, to the 2-line
# defun that is shown here,
#
# (find-eepitch-intro "3.3. `eepitch-preprocess-line'" "if we redefine")
#
# and you need to set the regexp used by the preprocessor, with:
#
# (setq eepitch-preprocess-regexp "^#T ?")
#
# Then try to run the "prefixed eepitch block" below with `f8's:
#
#T * (eepitch-shell)
#T * (eepitch-kill)
#T * (eepitch-shell)
#T rm -Rv /tmp/test-make/
#T mkdir /tmp/test-make/
#T cd /tmp/test-make/
#T wget http://anggtwu.net/MAKE/demo-1.gnumake
#T make -f demo-1.gnumake help
# Suggested by grym:
# (find-node "(make)One Shell")
.ONESHELL:
foo:
pwd
cd /tmp/
pwd
#T * (eepitch-shell)
#T * (eepitch-kill)
#T * (eepitch-shell)
#T make -f demo-1.gnumake foo
# (find-es "make" "patsubst")
# (find-node "(make)Text Functions" "patsubst")
# (find-node "(make)Concept Index" "* @ (in recipes)")
# (find-node "(make)Echoing")
BASIC_STEMS = \
2021-2-C2-intro \
2021-2-C2-somas-1 \
2021-2-C2-MT1 \
2021-2-C2-MT2
BASIC_TEX = $(patsubst %,%.tex,${BASIC_STEMS})
show_basic_stems:
@echo ${BASIC_STEMS} | tr ' ' '\n'
show_basic_tex:
@echo ${BASIC_TEX} | tr ' ' '\n'
help:
@echo "# Targets:"
cat demo-1.gnumake | grep -v '^#' | grep ':$$'
all: help
#T * (eepitch-shell)
#T * (eepitch-kill)
#T * (eepitch-shell)
#T make -f demo-1.gnumake show_basic_stems
#T make -f demo-1.gnumake show_basic_tex
#T make -f demo-1.gnumake help
#T make -f demo-1.gnumake
# Local Variables:
# coding: utf-8-unix
# mode: makefile
# End: