summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorAnderson Torres <anderson.torres.8519@gmail.com>2026-02-04 17:51:54 -0300
committerAndreas Enge <andreas@enge.fr>2026-02-08 14:11:38 +0100
commit8d29cdc0d91618fcd0007eb211eb99b6bb101743 (patch)
tree3a03fa53169292161789e3d2d1979e02749272e9 /gnu
parent8dd35f8330046f13346e6548c67ed1a3f47bcd64 (diff)
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>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/build-tools.scm27
1 files changed, 21 insertions, 6 deletions
diff --git a/gnu/packages/build-tools.scm b/gnu/packages/build-tools.scm
index d2540f500d2..c3a66a19d45 100644
--- a/gnu/packages/build-tools.scm
+++ b/gnu/packages/build-tools.scm
@@ -1234,14 +1234,29 @@ but it does away with a lot of the complexity that comes with its history.")
1234 (build-system gnu-build-system) 1234 (build-system gnu-build-system)
1235 (arguments 1235 (arguments
1236 (list 1236 (list
1237 #:test-target "test"
1238 #:make-flags
1239 #~(list "DESTDIR=\"\""
1240 (string-append "CC=" #$(cc-for-target))
1241 (string-append "PREFIX=" #$output))
1242 #:phases 1237 #:phases
1243 #~(modify-phases %standard-phases 1238 #~(modify-phases %standard-phases
1244 (delete 'configure)))) 1239 (delete 'configure)
1240 ;; pdpmake can be built easily without relying on a previous Make
1241 ;; implementation; let's do this for the sake of bootstrappability.
1242 (replace 'build
1243 (lambda _
1244 (let ((args (append (find-files "." "\\.c$")
1245 (list "-o" "make"))))
1246 (apply invoke #$(cc-for-target) args))))
1247 (replace 'check
1248 (lambda* (#:key tests? #:allow-other-keys)
1249 (when tests?
1250 (with-directory-excursion "testsuite"
1251 (invoke "./runtest" "-v")))))
1252 (replace 'install
1253 (lambda _
1254 (let ((bindir (string-append #$output "/bin"))
1255 (mandir (string-append #$output "/share/man/man1")))
1256 (mkdir-p bindir)
1257 (mkdir-p mandir)
1258 (install-file "make" bindir)
1259 (install-file "pdpmake.1" mandir)))))))
1245 (home-page "https://frippery.org/make/") 1260 (home-page "https://frippery.org/make/")
1246 (synopsis "Public domain POSIX make") 1261 (synopsis "Public domain POSIX make")
1247 (description 1262 (description