Allow bytecode-only build

This commit is contained in:
John Whitington 2022-08-02 19:24:05 +02:00
parent 27b881663f
commit a676736410
2 changed files with 13 additions and 6 deletions

View File

@ -19,7 +19,18 @@ OCAMLNCFLAGS = -g -safe-string
OCAMLBCFLAGS = -g -safe-string
OCAMLLDFLAGS = -g
all : native-code native-code-library byte-code-library top htdoc
TARGETS := byte-code-library top htdoc
LIBINSTALL_FILES = cpdf.cma \
$(foreach x,$(MODS),$x.mli) $(foreach x,$(MODS),$x.cmi) \
$(foreach x,$(MODS),$x.cmti)
ifneq ($(shell ocamlopt -version),)
TARGETS += native-code native-code-library
LIBINSTALL_FILES += cpdf.a cpdf.cmxa $(foreach x,$(PDFMODS),$x.cmx)
endif
all : $(TARGETS)
clean ::
rm -rf doc foo foo2 out.pdf out2.pdf foo.pdf decomp.pdf *.cmt *.cmti \
@ -34,10 +45,6 @@ DOC_FILES = cpdfunicodedata.mli cpdferror.mli cpdfdebug.mli cpdfjson.mli \
cpdfspot.mli cpdfpagelabels.mli cpdfcreate.mli cpdfannot.mli \
cpdfxobject.mli cpdfimpose.mli cpdftweak.mli cpdfcommand.mli
LIBINSTALL_FILES = cpdf.a cpdf.cma cpdf.cmxa \
$(foreach x,$(MODS),$x.mli) $(foreach x,$(MODS),$x.cmi) \
$(foreach x,$(MODS),$x.cmx) $(foreach x,$(MODS),$x.cmti)
install : libinstall
-include OCamlMakefile

View File

@ -3,7 +3,7 @@ let demo = false
let noncomp = false
let major_version = 2
let minor_version = 6
let version_date = "(devel, 14 Jul 2022)"
let version_date = "(devel, 16th Jul 2022)"
open Pdfutil
open Pdfio