From b743073dd14888990ca5a144e3b745ff9e4f4d84 Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Thu, 19 Apr 2018 11:44:03 -0400 Subject: [PATCH] Fix missing cleanup of "tree" executable --- exercises/ch01/Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/exercises/ch01/Makefile b/exercises/ch01/Makefile index 3c986c0..d376e05 100644 --- a/exercises/ch01/Makefile +++ b/exercises/ch01/Makefile @@ -3,12 +3,14 @@ MAKEFLAGS := --no-builtin-rules OCAMLC_OPTIONS := -w A -warn-error A OCAMLC_BYTE := ocamlc.opt $(OCAMLC_OPTIONS) -.PHONY: build clean demo_unbalanced - -build : \ +EXECUTABLES := \ straight_line_program_interpreter \ tree +.PHONY: build clean demo_unbalanced + +build : $(EXECUTABLES) + %: %.ml %.cmo %.cmi $(OCAMLC_BYTE) -o $@ $*.cmo @@ -19,7 +21,7 @@ build : \ $(OCAMLC_BYTE) -c $< clean: - rm -f straight_line_program_interpreter + rm -f $(EXECUTABLES) tree.png: tree ./tree a b c d e f g h i j k l m n o p q r s t u v foo bar kgkvbkvg lkhjlk gfjyfjf fdtrdchfhtr trhfgfch hjlilijhl iygkyugkgkhy | neato -T png > tree.png -- 2.20.1