First import of rash-makefile
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
#lang scribble/manual
|
||||
|
||||
@(require (for-label racket
|
||||
racket-makefile
|
||||
rash-makefile))
|
||||
|
||||
@title{rash-makefile}
|
||||
@author["Hans Dijkema / hans@dijkewijk.nl"]
|
||||
|
||||
@defmodule[rash-makefile]
|
||||
|
||||
@tt{rash-makefile} provides the Rash/Linea adapter for @racketmodname[racket-makefile]. The core @tt{racket-makefile} package remains independent of Rash.
|
||||
|
||||
@section{Using the adapter}
|
||||
|
||||
@verbatim{
|
||||
#lang rash
|
||||
|
||||
(require rash-makefile)
|
||||
|
||||
(makefile demo
|
||||
(default-target all)
|
||||
(phony status all)
|
||||
|
||||
(target status
|
||||
(displayln "status"))
|
||||
|
||||
(target all
|
||||
(deps status)
|
||||
(displayln "all")))
|
||||
}
|
||||
|
||||
In Rash line mode, bare target names are converted to symbols:
|
||||
|
||||
@verbatim{
|
||||
make status
|
||||
make all
|
||||
}
|
||||
|
||||
The ordinary Racket form remains available in the same module:
|
||||
|
||||
@racketblock[
|
||||
(make 'status)
|
||||
(make 'all)
|
||||
]
|
||||
Reference in New Issue
Block a user