forked from mighty-gerbils/gerbil
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
91 lines (69 loc) · 2.25 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# Makefile Template for Gerbil
# Tangled using Org Mode (C-c C-v t) from doc/configure.org
# $ tangle() {
# emacs --batch -l org --eval "(org-babel-tangle-file \"$1\")"
# }
# $ tangle doc/configure.org
# Copyright (c) 2019 by drewc <[email protected]>, All Rights Reserved.
# The Makefile is generated by running ./configure
PACKAGE_SHORTNAME = @PACKAGE_SHORTNAME@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_VERSION = @PACKAGE_VERSION@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
prefix = @prefix@
exec_prefix = @exec_prefix@
includedir = @includedir@
libdir = @libdir@
bindir = @bindir@
docdir = @docdir@
infodir = @infodir@
emacsdir = @emacsdir@
libexecdir = @libexecdir@
datarootdir = @datarootdir@
datadir = @datadir@
htmldir = @htmldir@
dvidir = @dvidir@
pdfdir = @pdfdir@
psdir = @psdir@
localedir = @localedir@
mandir = @mandir@
LIBS = @LIBS@
gerbil_home = ${prefix}/lib/${PACKAGE_SHORTNAME}
gerbil_bin = "$(gerbil_home)/bin"
gerbil_lib = "${gerbil_home}/lib"
gerbil_share = "${gerbil_home}/share"
gerbil_bin_linkdir = "${prefix}/bin"
gerbil_share_linkdir = "${prefix}/share"
gerbil_make_conf = @gerbil_make_conf@
gerbil: configure
cd src && LDFLAGS="$(LIBS)" ./build.sh
ensure-gx-version:
echo "(define (gerbil-version-string) \"$(PACKAGE_VERSION)\")" \
> ./src/gerbil/runtime/gx-version.scm ;
configure: ensure-gx-version
cd src && ./configure $(gerbil_make_conf) --prefix=$(gerbil_home)
stdlib:
cd src && LDFLAGS="$(LIBS)" ./build.sh stdlib
lang:
cd src && LDFLAGS="$(LIBS)" ./build.sh lang
r7rs-large:
cd src && LDFLAGS="$(LIBS)" ./build.sh r7rs-large
tools:
cd src && LDFLAGS="$(LIBS)" ./build.sh tools
stage0: configure
cd src && LDFLAGS="$(LIBS)" ./build.sh stage0
stage1:
cd src && LDFLAGS="$(LIBS)" ./build.sh stage1
layout:
cd src && LDFLAGS="$(LIBS)" ./build.sh layout
tags:
cd src && LDFLAGS="$(LIBS)" ./build.sh tags
install:
mkdir -p ${gerbil_bin} ${gerbil_share} ${gerbil_bin_linkdir} ${gerbil_share_linkdir}
cd src && ./install
cp -a --link --remove-destination ${gerbil_bin}/* ${gerbil_bin_linkdir} || \
cp -a ${gerbil_bin}/* ${gerbil_bin_linkdir}
cp -a --link --remove-destination ${gerbil_share}/* ${gerbil_share_linkdir} || \
cp -a ${gerbil_share}/* ${gerbil_share_linkdir}