Skip to content

Commit cbb92d2

Browse files
committed
remove unused ocamlyacc dependencies, never put it in boot/
1 parent ac265e9 commit cbb92d2

5 files changed

Lines changed: 7 additions & 11 deletions

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ _ocamltestd
5656
/asmcomp/CSE.ml
5757

5858
/boot/ocamlrun
59-
/boot/ocamlyacc
6059
/boot/camlheader
6160

6261
/bytecomp/runtimedef.ml

Makefile

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,6 @@ beforedepend:: utils/config.ml
377377
coldstart:
378378
$(MAKE) -C runtime $(BOOT_FLEXLINK_CMD) all
379379
cp runtime/ocamlrun$(EXE) boot/ocamlrun$(EXE)
380-
$(MAKE) -C yacc $(BOOT_FLEXLINK_CMD) all
381-
cp yacc/ocamlyacc$(EXE) boot/ocamlyacc$(EXE)
382380
$(MAKE) -C stdlib $(BOOT_FLEXLINK_CMD) \
383381
COMPILER="../boot/ocamlc -use-prims ../runtime/primitives" all
384382
cd stdlib; cp $(LIBFILES) ../boot
@@ -388,7 +386,7 @@ coldstart:
388386
.PHONY: coreall
389387
coreall: runtime
390388
$(MAKE) ocamlc
391-
$(MAKE) ocamllex ocamlyacc ocamltools library
389+
$(MAKE) ocamllex ocamltools library
392390

393391
# Build the core system: the minimum needed to make depend and bootstrap
394392
.PHONY: core
@@ -415,7 +413,6 @@ PROMOTE ?= cp
415413
promote-common:
416414
$(PROMOTE) ocamlc boot/ocamlc
417415
$(PROMOTE) lex/ocamllex boot/ocamllex
418-
cp yacc/ocamlyacc$(EXE) boot/ocamlyacc$(EXE)
419416
cd stdlib; cp $(LIBFILES) ../boot
420417

421418
# Promote the newly compiled system to the rank of cross compiler
@@ -1190,7 +1187,7 @@ partialclean::
11901187
# Tools
11911188

11921189
.PHONY: ocamltools
1193-
ocamltools: ocamlc ocamlyacc ocamllex asmcomp/cmx_format.cmi \
1190+
ocamltools: ocamlc ocamllex asmcomp/cmx_format.cmi \
11941191
asmcomp/printclambda.cmo compilerlibs/ocamlmiddleend.cma \
11951192
asmcomp/export_info.cmo
11961193
$(MAKE) -C tools all
@@ -1200,7 +1197,7 @@ ocamltoolsopt: ocamlopt
12001197
$(MAKE) -C tools opt
12011198

12021199
.PHONY: ocamltoolsopt.opt
1203-
ocamltoolsopt.opt: ocamlc.opt ocamlyacc ocamllex.opt asmcomp/cmx_format.cmi \
1200+
ocamltoolsopt.opt: ocamlc.opt ocamllex.opt asmcomp/cmx_format.cmi \
12041201
asmcomp/printclambda.cmx compilerlibs/ocamlmiddleend.cmxa \
12051202
asmcomp/export_info.cmx
12061203
$(MAKE) -C tools opt.opt
@@ -1344,7 +1341,7 @@ depend: beforedepend
13441341
.PHONY: distclean
13451342
distclean: clean
13461343
rm -f boot/ocamlrun boot/ocamlrun$(EXE) boot/camlheader \
1347-
boot/ocamlyacc boot/*.cm* boot/libcamlrun.$(A)
1344+
boot/*.cm* boot/libcamlrun.$(A)
13481345
rm -f config/Makefile runtime/caml/m.h runtime/caml/s.h
13491346
rm -f tools/*.bak
13501347
rm -f ocaml ocamlc

debugger/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ include ../Makefile.common
1818

1919
UNIXDIR=../otherlibs/$(UNIXLIB)
2020
CAMLRUN ?= ../boot/ocamlrun
21-
CAMLYACC ?= ../boot/ocamlyacc
21+
CAMLYACC ?= ../yacc/ocamlyacc$(EXE)
2222

2323
CAMLC=$(CAMLRUN) ../ocamlc -g -nostdlib -I ../stdlib
2424
COMPFLAGS=$(INCLUDES) -absname -w +a-4-9-41-42-44-45-48 -warn-error A \

lex/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# The lexer generator
1717
include ../config/Makefile
1818
CAMLRUN ?= ../boot/ocamlrun
19-
CAMLYACC ?= ../boot/ocamlyacc
19+
CAMLYACC ?= ../yacc/ocamlyacc
2020

2121
ROOTDIR=..
2222

ocamldoc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ include $(ROOTDIR)/config/Makefile
1919
include $(ROOTDIR)/Makefile.common
2020

2121
OCAMLRUN ?= $(ROOTDIR)/boot/ocamlrun
22-
OCAMLYACC ?= $(ROOTDIR)/boot/ocamlyacc
22+
OCAMLYACC ?= $(ROOTDIR)/yacc/ocamlyacc
2323

2424
STDLIBFLAGS = -nostdlib -I $(ROOTDIR)/stdlib
2525
OCAMLC = $(OCAMLRUN) $(ROOTDIR)/ocamlc $(STDLIBFLAGS)

0 commit comments

Comments
 (0)