From 4014eb026b84091457f83734263dca3da0b4b937 Mon Sep 17 00:00:00 2001 From: Vasily Levchenko Date: Fri, 9 Sep 2016 11:54:42 +0300 Subject: [PATCH] Makefile:.PRECIOUS for some reasons make decides that build interrupted or so and removes intermediate results (or by some implecit rule) and delete files I've been interested in: %.ll, %.bc, %.s and %.o. .PRECIOUS helps to prevent such behaviour for selected files. --- experiments/dwarf-2/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/experiments/dwarf-2/Makefile b/experiments/dwarf-2/Makefile index b0fbf15ea07..a25729ad12e 100644 --- a/experiments/dwarf-2/Makefile +++ b/experiments/dwarf-2/Makefile @@ -23,10 +23,10 @@ TRANSLATOR_JAR=../translator/build/libs/translator-1.0.jar %.asc:%.o ${LLVM_DWARF_DUMP} $< > $@ -.PHONY: clean all - all:main.asc classfields_1.asc 2-functions.asc clean: ${RM} *.o *.asc *.bc *.s main.ll +.PHONY: clean all +.PRECIOUS:%.ll %.bc %.s %.o