Fixed makefile: was attempting to create MathJax link when it already existed.
This commit is contained in:
parent
95ec94809b
commit
e0cbf4752f
|
@ -1,5 +1,8 @@
|
||||||
#lang racket
|
#lang racket
|
||||||
|
|
||||||
|
;; TODO: use (or (file-exists? path) (directory-exists? path)
|
||||||
|
;; (link-exists? path)), when checking whether the output was created.
|
||||||
|
|
||||||
(require (for-syntax syntax/parse)
|
(require (for-syntax syntax/parse)
|
||||||
rackunit)
|
rackunit)
|
||||||
|
|
||||||
|
|
|
@ -143,8 +143,9 @@
|
||||||
;; Create root MathJax link, must be done before the others
|
;; Create root MathJax link, must be done before the others
|
||||||
;; Otherwise make/proc thinks the (broken) link hasn't been created.
|
;; Otherwise make/proc thinks the (broken) link hasn't been created.
|
||||||
(make-directory* "docs/") ;; docs/ must be created before Depencency graph too
|
(make-directory* "docs/") ;; docs/ must be created before Depencency graph too
|
||||||
|
(unless (link-exists? (build-path "docs" "MathJax"))
|
||||||
(make-file-or-directory-link (build-path 'up "lib" "doc" "MathJax")
|
(make-file-or-directory-link (build-path 'up "lib" "doc" "MathJax")
|
||||||
(build-path "docs" "MathJax"))
|
(build-path "docs" "MathJax")))
|
||||||
|
|
||||||
|
|
||||||
;; Dependency graph, must be done before docs.
|
;; Dependency graph, must be done before docs.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user