Skip to content
Snippets Groups Projects
Verified Commit 632e45d5 authored by Maciej Barć's avatar Maciej Barć :penguin:
Browse files

Makefile: miscellaneous fixes


repalce "=" with ":=",
replace make with $(MAKE) and add MAKE variable

Signed-off-by: Maciej Barć's avatarMaciej Barć <xgqt@gentoo.org>
parent dda93d97
No related branches found
No related tags found
1 merge request!2Makefile: miscellaneous fixes
.POSIX:
DESTDIR =
PREFIX = /usr
BINDIR = /bin
MANDIR = /share/man
INSTALL = install
CFLAGS = -Wall -O2
DESTDIR :=
PREFIX := /usr
BINDIR := /bin
MANDIR := /share/man
INSTALL := install
CFLAGS := -Wall -O2
CC = gcc
CC := gcc
MAKE := make
## Pseudo targets
......@@ -36,7 +37,7 @@ c/vm.c: c/_vm.c
fasl/ol.fasl: fasl/init.fasl owl/*.scm owl/*/*.scm scheme/*.scm tests/*.scm tests/*.sh
# selfcompile boot.fasl until a fixed point is reached
make bin/vm
$(MAKE) bin/vm
bin/vm fasl/init.fasl -r bin/fasl-build.scm -f bin/vm fasl/boot.fasl -r owl/ol.scm -o fasl/bootp.fasl
## binary image
......@@ -162,7 +163,7 @@ tarball: c/ol.c bin/ol
tar -f - -c owl-${VERSION} | gzip -9 > owl-${VERSION}.tar.gz
# check that build of the contents succeeds
find owl-${VERSION}
cd owl-${VERSION} && make
cd owl-${VERSION} && $(MAKE)
owl-${VERSION}/bin/ol --version
bin/vm fasl/ol.fasl --run owl/ol.scm -s none -o ol-${VERSION}.c
cc -O -o ol-${VERSION} ol-${VERSION}.c
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment