From: Siraaj Khandkar Date: Thu, 19 Apr 2018 15:44:03 +0000 (-0400) Subject: Fix missing cleanup of "tree" executable X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=b743073dd14888990ca5a144e3b745ff9e4f4d84;p=tiger.ml.git Fix missing cleanup of "tree" executable --- 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