makefile-targets and some other meta info functions added

This commit is contained in:
2026-08-18 02:15:33 +02:00
parent a21f4a4a39
commit 635d2d40d1
13 changed files with 538 additions and 251 deletions
+7 -7
View File
@@ -8,23 +8,23 @@
(define CC 'cc)
(define CFLAGS '(-Wall -O2))
(makefile hello
(default-target all)
(phony all clean setup test)
(makefile 'hello
(default-target 'all)
(phony 'all 'clean 'setup 'test)
(target all
(target 'all
(deps "hello"))
(target "hello"
(deps "hello.c")
(run `(,CC ,@CFLAGS -o $target $<)))
(target clean
(target 'clean
(rm-f "hello")
(rm-rf "compiled"))
(target setup
(target 'setup
(raco '(setup racket-makefile)))
(target test
(target 'test
(raco '(test -p racket-makefile))))