makefile-targets and some other meta info functions added
This commit is contained in:
@@ -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))))
|
||||
|
||||
Reference in New Issue
Block a user