Skip to content

Commit 27da3f8

Browse files
committed
Don't generate directory change for prepare/finish hooks in Makefiles
1 parent d06e174 commit 27da3f8

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/deployment/makefile/target.lisp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,11 @@
165165
(finish-hook-rule-names '()))
166166
;; Prepare hooks
167167
(map nil (lambda (distribution)
168-
(when-let ((command (var:value distribution :prepare-hook/unix nil)))
168+
(when-let ((command (var:value distribution #1=:prepare-hook/unix nil)))
169169
(let* ((name (model:name distribution))
170-
(rule-name (format nil "~A-~(~A~)" name :prepare-hook/unix))
171-
(rule (make-instance 'rule :name rule-name
172-
:command command
173-
:directory directory)))
170+
(rule-name (format nil "~A-~(~A~)" name #1#))
171+
(rule (make-instance 'rule :name rule-name
172+
:command command)))
174173
(push rule-name prepare-hook-rule-names)
175174
(appendf rules (list rule)))))
176175
thing)
@@ -193,8 +192,7 @@
193192
interface-rule-names))
194193
(rule (make-instance 'rule :name rule-name
195194
:dependencies dependencies
196-
:command command
197-
:directory directory)))
195+
:command command)))
198196
(push rule-name finish-hook-rule-names)
199197
(appendf rules (list rule)))))
200198
thing)

0 commit comments

Comments
 (0)