Removed rash integration again and backported raco call.

This commit is contained in:
2026-08-17 21:40:48 +02:00
parent 26a0e780c5
commit a21f4a4a39
15 changed files with 716 additions and 1287 deletions
+20 -27
View File
@@ -1,37 +1,30 @@
#lang racket-makefile
#lang racket
;; Load only:
;; racket -t Makefile.rkt
;;
;; Build the default target:
;; racket -t Makefile.rkt -e "(make)"
;;
;; Clean and rebuild:
;; racket -t Makefile.rkt -e "(make clean all)"
;;
;; In DrRacket, press Run and then enter (make), (make clean), etc.
(require racket-makefile)
;; Functional use: press Run in DrRacket and use (make 'all), (make 'clean),
;; or call a generated target procedure directly.
(define CC 'cc)
(define CFLAGS '(-Wall -O2))
(default-target all)
(phony all clean setup test)
(makefile hello
(default-target all)
(phony all clean setup test)
(target all
(deps "hello"))
(target all
(deps "hello"))
(target "hello"
(deps "hello.c")
(run `(,CC ,@CFLAGS -o $target $<)))
(target "hello"
(deps "hello.c")
(run `(,CC ,@CFLAGS -o $target $<)))
(target clean
(rm-f "hello")
(rm-rf "compiled")
(cleanup "scrbl" '("**.html" "**.js" "**.css")))
(target clean
(rm-f "hello")
(rm-rf "compiled"))
(target setup
(raco '(setup racket-makefile)))
(target setup
(raco '(setup racket-makefile)))
(target test
(raco '(test -p racket-makefile)))
(target test
(raco '(test -p racket-makefile))))