From 63bd9a457698900021452d8955b94285da3a5ffe Mon Sep 17 00:00:00 2001 From: Hans Dijkema Date: Tue, 11 Aug 2026 17:32:09 +0200 Subject: [PATCH] Added all kinds of extra targets to the makefile; which can be an example of use --- Makefile.rkt | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/Makefile.rkt b/Makefile.rkt index 39531c9..42dd1c4 100644 --- a/Makefile.rkt +++ b/Makefile.rkt @@ -4,6 +4,7 @@ racket/string git package-zipper + net/sendurl ) (target all @@ -31,11 +32,25 @@ (target clean (for-each (λ (f) (displayln f) (rm-f f)) (list-files "." #px"([.]bak|~)$" #:recursive #t)) - (for-each (λ (d) (displayln d) (rm-rf d)) (list-dirs "." #px"(compiled|doc)$" #:recursive #t)) + (for-each (λ (d) (displayln d) (rm-rf d)) (list-dirs "." #px"(compiled|doc|docs)$" #:recursive #t)) (for-each (λ (f) (displayln f) (rm-f f)) (list-files "scrbl" #px"[.](css|js|html)$")) ) (target package (deps clean) (zip-package)) - \ No newline at end of file + +(target "docs/racket-makefile.html" + (deps "scrbl/racket-makefile.scrbl") + (unless (directory-exists? "docs") + (make-directory "docs")) + (raco '(scribble --html +m --dest "docs" scrbl/racket-makefile.scrbl))) + +(target doc + (deps "docs/racket-makefile.html") + (displayln "Documentation built") + ) + +(target showdoc + (deps doc) + (send-url/file "docs/racket-makefile.html")) \ No newline at end of file