changeset 17: |
aac1cf6cf2bb |
parent: |
87dd4724adfb
|
child: |
3491c1d1815d |
author: |
ellis <ellis@rwest.io> |
date: |
Fri, 01 Dec 2023 23:20:45 -0500 |
permissions: |
-rw-r--r-- |
description: |
more scripts |
1 ### infra/makefile --- The Compiler Company Infrastructure 3 LINUX_VERSION:=$(shell
uname
-r
| cut
-d-
-f1
) 14 CPU_COUNT:=$(shell
getconf
_NPROCESSORS_ONLN
) 15 HG_COMMIT:=$(shell
hg
id
-i
) 18 VARS:=$(foreach
v,
$(filter-out
$(__
) __,
$(.VARIABLES
)),
"\n$(v
) = $($(v
))") 20 all:linux emacs rocksdb sbcl rust code virt dist;
22 clean:clean-
linux clean-
code clean-
sbcl clean-
dist;
25 LINUX_TARGET:=linux-
$(LINUX_VERSION
) 26 linux:$(LINUX_TARGET) linux-
config;
28 $(LINUX_TARGET):scripts/
get-
linux.
sh;
30 gpg
--export
autosigner@
torvalds@
gregkh@
>
build/
$@/keyring.gpg
31 $<
$(LINUX_VERSION
) build
build/
$@/keyring.gpg
32 cd build
&& unxz
$@.tar.xz
&& tar
-xvf
$@.tar
$(LINUX_TARGET
) 33 linux-config:$(LINUX_TARGET);
34 cd build/$<
&& make
mrproper
-j
&& zcat
/proc/config.gz
>
.config
&& yes
N
| make
localmodconfig
35 clean-linux::;
rm -
rf build/
$(LINUX_TARGET) 38 EMACS_TARGET:=build/src/emacs-
$(EMACS_VERSION
) 39 EMACS_DIST:=$(DIST
)/src/emacs
40 emacs:scripts/
get-
emacs.
sh;
43 emacs-build:emacs scripts/
build-
emacs.
sh;
46 mkdir
-pv
$(EMACS_DIST
) 47 scripts/build-emacs.sh
$(EMACS_VERSION
) $(EMACS_TARGET
) $(EMACS_DIST
) 49 emacs-install:emacs-
build;
54 ROCKSDB_TARGET:=build/src/rocksdb-
$(ROCKSDB_VERSION
) 55 rocksdb:scripts/
get-
rocksdb.
sh;
58 make
shared_lib
DISABLE_JEMALLOC=1 61 SBCL_TARGET:=build/src/sbcl-
$(SBCL_VERSION
) 62 sbcl:scripts/
get-
sbcl.
sh;
64 cd $(SBCL_TARGET
) && \ 65 echo '"2.3.12+main"' >
version.lisp-expr
&& \ 68 --with-mark-region-gc
\ 69 --with-core-compression
\ 70 --with-sb-xref-for-internals
\ 71 --dynamic-space-size
=4Gb
\ 74 clean-sbcl:;
rm -
rf $(SBCL_TARGET) 77 RUST_TARGET:=build/src/rust-
$(RUST_VERSION
) 78 rust:scripts/
get-
rust.
sh 81 cargo
install
--path
$(RUST_TARGET
)/src/tools/x
82 rust-build:rust rust-
install-
x;
83 cd $(RUST_TARGET
) && x
build
library
84 rust-doc:rust rust-
install-
x;
85 cd $(RUST_TARGET
) && x
doc
86 rust-build-full:rust-
build;
87 cd $(RUST_TARGET
) && x
build
--stage
2 compiler/rustc
88 rust-install:rust-
build;
89 cd $(RUST_TARGET
) && x
install
92 CODE_TARGET:=build/src/
$(SRC
) 93 code:scripts/
get-
code.
sh 96 clean-code::;
rm -
rf $(CODE_TARGET) 99 dev-pod:virt/
build-
pod.
sh 101 archlinux:virt/
build-
archlinux-
base.
sh 103 fedora:virt/
build-
fedora-
base.
sh 105 box:virt/
build-
box-
base.
sh 107 bbdb:virt/
build-
bbdb-
base.
sh 109 heptapod:virt/
build-
heptapod.
sh 111 heptapod-runner:virt/
build-
heptapod-
runner.
sh 114 vc-pod:heptapod heptapod-
runner 119 dist/bundle:scripts/
bundle-
dir.
sh 127 $(SBCL_TARGET
)/install.sh
--prefix
=$(D
) 131 dist/rocksdb:rocksdb;
133 cp
-rf
include/*
$(D
) 134 cp
-f
librocksdb.so*
$(D
)/lib/
136 dist/rust:rust-
build;
137 cd $(RUST_TARGET
) && x
dist
141 dist:dist/
bundle dist/
cdn dist/
sbcl dist/
rocksdb # dist/linux dist/rust 143 clean-dist::;
rm -
rf dist/*