1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

gnu: pdpmake: Do not rely on a previous make.

* gnu/packages/build-tools.scm (pdpmake)[arguments]<#:phases>:
Add custom build, check and install phases. Remove configure phase.
<#:test-target>, <#:make-flags>: Remove.

Change-Id: Ibd08da53aab2aec14a3e2562bf39a3c54d3aff91
Signed-off-by: Andreas Enge <andreas@enge.fr>
This commit is contained in:
Anderson Torres
2026-02-04 17:51:54 -03:00
committed by Andreas Enge
parent 8dd35f8330
commit 8d29cdc0d9

View File

@@ -1234,14 +1234,29 @@ but it does away with a lot of the complexity that comes with its history.")
(build-system gnu-build-system)
(arguments
(list
#:test-target "test"
#:make-flags
#~(list "DESTDIR=\"\""
(string-append "CC=" #$(cc-for-target))
(string-append "PREFIX=" #$output))
#:phases
#~(modify-phases %standard-phases
(delete 'configure))))
(delete 'configure)
;; pdpmake can be built easily without relying on a previous Make
;; implementation; let's do this for the sake of bootstrappability.
(replace 'build
(lambda _
(let ((args (append (find-files "." "\\.c$")
(list "-o" "make"))))
(apply invoke #$(cc-for-target) args))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(with-directory-excursion "testsuite"
(invoke "./runtest" "-v")))))
(replace 'install
(lambda _
(let ((bindir (string-append #$output "/bin"))
(mandir (string-append #$output "/share/man/man1")))
(mkdir-p bindir)
(mkdir-p mandir)
(install-file "make" bindir)
(install-file "pdpmake.1" mandir)))))))
(home-page "https://frippery.org/make/")
(synopsis "Public domain POSIX make")
(description