more helpful example targets

This commit is contained in:
anon 2024-01-12 23:21:57 +01:00
parent 9136450c6f
commit 295e00ec92

View File

@ -1,13 +1,22 @@
plug: ex1_c ex2_c
cat ex1.txt
@make ex1_e
cat ex1.txt
echo "---"
cat ex2.cpp
@make ex2_e
cat ex2.cpp
unplug: ex1_e ex2_e
ex1_c
ex2_c
ex1_e:
../plug -f ex1.txt -d hw 'hello world' -g hw
cat ex1.txt
ex1_c:
../plug -f ex1.txt -u hw
cat ex1.txt
ex2_e:
../plug -f ex2.cpp -d code ' puts(hello world);' -g code
cat ex2.cpp
ex2_c:
../plug -f ex2.cpp -u code
cat ex2.cpp