1
0
mirror of https://github.com/janet-lang/janet synced 2025-01-13 00:50:26 +00:00

Copy janetconf to build for amalg target.

This makes testing the amalg easier.
This commit is contained in:
Calvin Rose 2019-11-08 20:33:26 -06:00
parent c12eaa926a
commit 6591e7636d
2 changed files with 5 additions and 2 deletions

View File

@ -213,7 +213,7 @@ build/boot.gen.c: src/boot/boot.janet build/xxd
##### Amalgamation ##### ##### Amalgamation #####
######################## ########################
amalg: build/shell.c build/janet.c build/janet.h build/core_image.c amalg: build/shell.c build/janet.c build/janet.h build/core_image.c build/janetconf.h
AMALG_SOURCE=$(JANET_LOCAL_HEADERS) $(JANET_CORE_SOURCES) build/core_image.c AMALG_SOURCE=$(JANET_LOCAL_HEADERS) $(JANET_CORE_SOURCES) build/core_image.c
build/janet.c: $(AMALG_SOURCE) tools/amalg.janet $(JANET_TARGET) build/janet.c: $(AMALG_SOURCE) tools/amalg.janet $(JANET_TARGET)
@ -226,6 +226,9 @@ build/shell.c: $(JANET_TARGET) tools/amalg.janet $(AMALG_SHELL_SOURCE)
build/janet.h: src/include/janet.h build/janet.h: src/include/janet.h
cp $< $@ cp $< $@
build/janetconf.h: src/conf/janetconf.h
cp $< $@
################### ###################
##### Testing ##### ##### Testing #####
################### ###################

View File

@ -221,7 +221,7 @@ amalg_shell = custom_target('amalg-shell',
command : [janet_nativeclient, '@INPUT@']) command : [janet_nativeclient, '@INPUT@'])
# Amalgamated client # Amalgamated client
janet_amalgclient = executable('janet-amalg', amalg, mainclient_src, janet_amalgclient = executable('janet-amalg', amalg, amalg_shell,
include_directories : incdir, include_directories : incdir,
dependencies : [m_dep, dl_dep], dependencies : [m_dep, dl_dep],
build_by_default : false) build_by_default : false)