Commit b195317d authored by Kim Nguyễn's avatar Kim Nguyễn
Browse files

Make use of the new recursive dependency building flags to avoid listing the...

Make use of the new recursive dependency building flags to avoid listing the order of .cdo in the Makefile (used for the standard library)
parent 5dcee9f3
......@@ -113,7 +113,7 @@ else
FORPACKOPT=
endif
STDLIB_CD=stdlib/Io.cd stdlib/Fmt.cd stdlib/List.cd
STDLIB_CD=$(shell ls stdlib/*.cd)
STDLIB_CDO=$(STDLIB_CD:.cd=.cdo)
INSTALL := install -c
......@@ -204,7 +204,7 @@ parser/cduce_loc.cmo parser/cduce_url.cmo \
schema/schema_parser.cmo schema/schema_converter.cmo \
runtime/load_xml.cmo runtime/print_xml.cmo compile/operators.cmo types/builtin.cmo \
driver/librarian.cmo \
types/sample.cmo driver/cduce.cmo
types/sample.cmo driver/cduce.cmo
schema/schema_types.ml: schema/schema_types.mli
cp $^ $@
......@@ -449,10 +449,12 @@ cduceres.o: win32/cduce.rc win32/cduce_logo-bw.ico
done
# Stdlib
stdlib: cduce $(STDLIB_CD)
for i in $(STDLIB_CD) ; do \
./cduce --compile -I stdlib $$i ; \
done
stdlib: $(STDLIB_CDO)
%.cdo: %.cd cduce
@echo "Build $@"
$(HIDE) ./cduce --compile --depends -I stdlib $<
# Documentation
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment