[ fix ] build by installing support before tests (#369)

This commit is contained in:
G. Allais 2020-05-12 15:23:42 +01:00 committed by GitHub
parent e7d0b33e64
commit f72f91c67a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View File

@ -4,4 +4,5 @@ copy . /Idris2-dev
workdir /Idris2-dev workdir /Idris2-dev
run make idris2 run make idris2
run make libs run make libs
run make install-support
run make test INTERACTIVE='' run make test INTERACTIVE=''

View File

@ -62,7 +62,7 @@ VALID_IDRIS_VERSION_REGEXP = "1.3.2.*"
.PHONY: ttimp idris2 idris2-fromc prelude test base clean lib_clean check_version idris2c dist/idris2.c .PHONY: ttimp idris2 idris2-fromc prelude test base clean lib_clean check_version idris2c dist/idris2.c
all: idris2 libs test all: idris2 libs install-support test
# test requires an Idris install! Maybe we should do a version in Idris2? # test requires an Idris install! Maybe we should do a version in Idris2?
all-fromc: idris2-fromc libs all-fromc: idris2-fromc libs

View File

@ -11,11 +11,12 @@ build : $(LIBTARGET) $(DYLIBTARGET)
$(LIBTARGET) : $(OBJS) $(LIBTARGET) : $(OBJS)
ar rc $(LIBTARGET) $(OBJS) ar rc $(LIBTARGET) $(OBJS)
ranlib $(LIBTARGET) ranlib $(LIBTARGET)
$(DYLIBTARGET) : $(OBJS) $(DYLIBTARGET) : $(OBJS)
$(CC) -shared $(OBJS) -fPIC -o $(DYLIBTARGET) $(CC) -shared $(OBJS) -fPIC -o $(DYLIBTARGET)
install: $(LIBTARGET) $(DYLIBTARGET) install: $(LIBTARGET) $(DYLIBTARGET)
mkdir -p ${PREFIX}/idris2-${IDRIS2_VERSION}/lib
install $(LIBTARGET) $(DYLIBTARGET) ${PREFIX}/idris2-${IDRIS2_VERSION}/lib install $(LIBTARGET) $(DYLIBTARGET) ${PREFIX}/idris2-${IDRIS2_VERSION}/lib
clean: clean: