• R/O
  • SSH

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Castle: The best Real-Time/Embedded/HighTech language EVER. Attempt 2


Commit MetaInfo

Revisionf4b9258a0b7cdc367524eecdcd4c8070b0131dc1 (tree)
Zeit2022-01-24 04:31:18
AutorAlbert Mietus < albert AT mietus DOT nl >
CommiterAlbert Mietus < albert AT mietus DOT nl >

Log Message

Saved old Makefiles into Mk/

Ändern Zusammenfassung

Diff

diff -r 8a3dd318d315 -r f4b9258a0b7c AST/Makefile
--- a/AST/Makefile Sun Jan 23 20:24:46 2022 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,25 +0,0 @@
1-default: test
2-
3-all: test demos
4-
5-test:
6- (cd pytst/; pytest)
7-test-s:
8- (cd pytst/; pytest -s)
9-
10-DEMOS:=$(wildcard demo/*demo*.py)
11-demos:
12- for d in ${DEMOS}; do echo "*** $$d ***"; python $$d; done
13-
14-clean:
15- rm -rf {.,castle}/{__pycache__,.pytest_cache}/
16- rm -rf pytst/{.,*}/{__pycache__,.pytest_cache}/
17- rm -f *.dot
18- rm -f pytst/*.dot
19-
20-PYREVERSE_FORMAT=svg
21-PYREVERSEd=./pyreversed/
22-
23-pyreverse : ${PYREVERSEd}
24- pyreverse -d ${PYREVERSEd} -o ${PYREVERSE_FORMAT} -fALL -A -my -p TryOut.AST.Caste castle
25-
diff -r 8a3dd318d315 -r f4b9258a0b7c Jinja/Makefile
--- a/Jinja/Makefile Sun Jan 23 20:24:46 2022 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,25 +0,0 @@
1-default: demos
2-
3-all: demos test
4-
5-test:
6- (cd pytst/; pytest)
7-test-s:
8- (cd pytst/; pytest -s)
9-
10-DEMOS:=$(wildcard demo/*demo*.py)
11-demos:
12- for d in ${DEMOS}; do echo "*** $$d ***"; python $$d; done
13-
14-clean:
15- rm -rf {.,castle}/{__pycache__,.pytest_cache}/
16- rm -rf pytst/{.,*}/{__pycache__,.pytest_cache}/
17- rm -f *.dot
18- rm -f pytst/*.dot
19-
20-PYREVERSE_FORMAT=svg
21-PYREVERSEd=./pyreversed/
22-
23-pyreverse : ##${PYREVERSEd}
24- #pyreverse -d ${PYREVERSEd} -o ${PYREVERSE_FORMAT} -fALL -A -my -p TryOut.Jinja ...
25- @echo nothing yet
diff -r 8a3dd318d315 -r f4b9258a0b7c Makefile
--- a/Makefile Sun Jan 23 20:24:46 2022 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,6 +0,0 @@
1-default: all
2-
3-
4-SUBS = Arpeggio AST Jinja
5-
6-include ./recursive.mk
diff -r 8a3dd318d315 -r f4b9258a0b7c Mk/AST.Makefile.save
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Mk/AST.Makefile.save Sun Jan 23 20:31:18 2022 +0100
@@ -0,0 +1,25 @@
1+default: test
2+
3+all: test demos
4+
5+test:
6+ (cd pytst/; pytest)
7+test-s:
8+ (cd pytst/; pytest -s)
9+
10+DEMOS:=$(wildcard demo/*demo*.py)
11+demos:
12+ for d in ${DEMOS}; do echo "*** $$d ***"; python $$d; done
13+
14+clean:
15+ rm -rf {.,castle}/{__pycache__,.pytest_cache}/
16+ rm -rf pytst/{.,*}/{__pycache__,.pytest_cache}/
17+ rm -f *.dot
18+ rm -f pytst/*.dot
19+
20+PYREVERSE_FORMAT=svg
21+PYREVERSEd=./pyreversed/
22+
23+pyreverse : ${PYREVERSEd}
24+ pyreverse -d ${PYREVERSEd} -o ${PYREVERSE_FORMAT} -fALL -A -my -p TryOut.AST.Caste castle
25+
diff -r 8a3dd318d315 -r f4b9258a0b7c Mk/Jinja.Makefile.save
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Mk/Jinja.Makefile.save Sun Jan 23 20:31:18 2022 +0100
@@ -0,0 +1,25 @@
1+default: demos
2+
3+all: demos test
4+
5+test:
6+ (cd pytst/; pytest)
7+test-s:
8+ (cd pytst/; pytest -s)
9+
10+DEMOS:=$(wildcard demo/*demo*.py)
11+demos:
12+ for d in ${DEMOS}; do echo "*** $$d ***"; python $$d; done
13+
14+clean:
15+ rm -rf {.,castle}/{__pycache__,.pytest_cache}/
16+ rm -rf pytst/{.,*}/{__pycache__,.pytest_cache}/
17+ rm -f *.dot
18+ rm -f pytst/*.dot
19+
20+PYREVERSE_FORMAT=svg
21+PYREVERSEd=./pyreversed/
22+
23+pyreverse : ##${PYREVERSEd}
24+ #pyreverse -d ${PYREVERSEd} -o ${PYREVERSE_FORMAT} -fALL -A -my -p TryOut.Jinja ...
25+ @echo nothing yet
diff -r 8a3dd318d315 -r f4b9258a0b7c Mk/MainMakefile.save
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Mk/MainMakefile.save Sun Jan 23 20:31:18 2022 +0100
@@ -0,0 +1,6 @@
1+default: all
2+
3+
4+SUBS = Arpeggio AST Jinja
5+
6+include ./recursive.mk
diff -r 8a3dd318d315 -r f4b9258a0b7c Mk/parser-Makefile.save
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Mk/parser-Makefile.save Sun Jan 23 20:31:18 2022 +0100
@@ -0,0 +1,34 @@
1+default: all
2+
3+all: test missing_visitors
4+
5+test:
6+ (cd pytst/; pytest)
7+test-s:
8+ (cd pytst/; pytest -s)
9+
10+DEMOS:=$(wildcard demo/*demo*.py)
11+demos:
12+ for d in ${DEMOS}; do echo "*** $$d ***"; python $$d; done
13+
14+clean:
15+ rm -rf {.,castle}/{__pycache__,.pytest_cache}/
16+ rm -rf pytst/{.,*}/{__pycache__,.pytest_cache}/
17+ rm -f *.dot
18+ rm -f pytst/*.dot
19+
20+GRAMMAR_RULES := $(shell grep '^ *def ' ./grammar.py | awk '{print $$2}' | sed 's/()://')
21+
22+missing_visitors:
23+ @for R in ${GRAMMAR_RULES}; do \
24+ if ! grep -q -E "^ *((def)|(# *NO_VISITOR_NEEDED:)) *visit_$$R" ./visitor.py> /dev/null ; then\
25+ echo "Warning: $${R} has no visitor (nor is marked as to need none)" ;\
26+ fi ;\
27+ done
28+
29+PYREVERSE_FORMAT=svg
30+PYREVERSEd=./pyreversed/
31+
32+pyreverse : ${PYREVERSEd}
33+ pyreverse -d ${PYREVERSEd} -o ${PYREVERSE_FORMAT} -fALL -A -my -p TryOut.Arpeggio grammar.py visitor.py
34+
diff -r 8a3dd318d315 -r f4b9258a0b7c Mk/recursive.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Mk/recursive.mk Sun Jan 23 20:31:18 2022 +0100
@@ -0,0 +1,26 @@
1+# Makefile -- GNU syntax (C) 2000-2016 reuse freely -- http://ALbert.mietus.nl
2+
3+###
4+### recursive:: Generic macro to run sub-makes, in each dir in SUBS
5+###
6+
7+# all possible recursive targets ..
8+RECURSIVE = clean all test docs cleaner cleanest demos pyreverse
9+RECURSIVE_TARGETS = $(foreach dir,$(SUBS),$(foreach target,$(RECURSIVE),$(dir)/$(target)))
10+
11+.PHONY: ${RECURSIVE} ${SUBS} ${RECURSIVE_TARGETS}
12+
13+$(RECURSIVE): % : $(foreach dir,$(SUBS),$(dir)/%)
14+$(SUBS) : % : %/all
15+
16+${RECURSIVE_TARGETS}:
17+ $(MAKE) -C $(dir $@) $(notdir $@)
18+
19+# re-test: clean first, then test
20+retest : clean test
21+veryclean: cleanest
22+
23+help-local::
24+ @echo RECURSIVE: ${RECURSIVE}
25+ @echo SUBS: ${SUBS}
26+ @echo RECURSIVE_TARGETS: ${RECURSIVE_TARGETS}
diff -r 8a3dd318d315 -r f4b9258a0b7c TODO.rst
--- a/TODO.rst Sun Jan 23 20:24:46 2022 +0100
+++ b/TODO.rst Sun Jan 23 20:31:18 2022 +0100
@@ -5,7 +5,8 @@
55
66 .. todo:: Makefiles
77
8- There are still some Makefiles (and *.mk) that contain usefull stuff -- BUT OLD
8+ * There are still some Makefiles (and *.mk) that contain usefull stuff -- BUT OLD
9+ * They are now moved/saves into the .../Mk/-dir
910
1011 .. todo:: Jinja/
1112
diff -r 8a3dd318d315 -r f4b9258a0b7c castle/readers/parser/Makefile
--- a/castle/readers/parser/Makefile Sun Jan 23 20:24:46 2022 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
1-default: all
2-
3-all: test missing_visitors
4-
5-test:
6- (cd pytst/; pytest)
7-test-s:
8- (cd pytst/; pytest -s)
9-
10-DEMOS:=$(wildcard demo/*demo*.py)
11-demos:
12- for d in ${DEMOS}; do echo "*** $$d ***"; python $$d; done
13-
14-clean:
15- rm -rf {.,castle}/{__pycache__,.pytest_cache}/
16- rm -rf pytst/{.,*}/{__pycache__,.pytest_cache}/
17- rm -f *.dot
18- rm -f pytst/*.dot
19-
20-GRAMMAR_RULES := $(shell grep '^ *def ' ./grammar.py | awk '{print $$2}' | sed 's/()://')
21-
22-missing_visitors:
23- @for R in ${GRAMMAR_RULES}; do \
24- if ! grep -q -E "^ *((def)|(# *NO_VISITOR_NEEDED:)) *visit_$$R" ./visitor.py> /dev/null ; then\
25- echo "Warning: $${R} has no visitor (nor is marked as to need none)" ;\
26- fi ;\
27- done
28-
29-PYREVERSE_FORMAT=svg
30-PYREVERSEd=./pyreversed/
31-
32-pyreverse : ${PYREVERSEd}
33- pyreverse -d ${PYREVERSEd} -o ${PYREVERSE_FORMAT} -fALL -A -my -p TryOut.Arpeggio grammar.py visitor.py
34-
diff -r 8a3dd318d315 -r f4b9258a0b7c recursive.mk
--- a/recursive.mk Sun Jan 23 20:24:46 2022 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,26 +0,0 @@
1-# Makefile -- GNU syntax (C) 2000-2016 reuse freely -- http://ALbert.mietus.nl
2-
3-###
4-### recursive:: Generic macro to run sub-makes, in each dir in SUBS
5-###
6-
7-# all possible recursive targets ..
8-RECURSIVE = clean all test docs cleaner cleanest demos pyreverse
9-RECURSIVE_TARGETS = $(foreach dir,$(SUBS),$(foreach target,$(RECURSIVE),$(dir)/$(target)))
10-
11-.PHONY: ${RECURSIVE} ${SUBS} ${RECURSIVE_TARGETS}
12-
13-$(RECURSIVE): % : $(foreach dir,$(SUBS),$(dir)/%)
14-$(SUBS) : % : %/all
15-
16-${RECURSIVE_TARGETS}:
17- $(MAKE) -C $(dir $@) $(notdir $@)
18-
19-# re-test: clean first, then test
20-retest : clean test
21-veryclean: cleanest
22-
23-help-local::
24- @echo RECURSIVE: ${RECURSIVE}
25- @echo SUBS: ${SUBS}
26- @echo RECURSIVE_TARGETS: ${RECURSIVE_TARGETS}