From e0c086841eda6a99e5c7d6224614979a94fcbade Mon Sep 17 00:00:00 2001 From: Daniel Lee Date: Tue, 16 Aug 2016 09:08:11 -0400 Subject: [PATCH 1/2] Fixes #485. make clean-all now removes built CVODES binaries --- makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index 92e01003ab..8ffc67ab22 100644 --- a/makefile +++ b/makefile @@ -221,7 +221,7 @@ build: bin/stanc$(EXE) bin/stansummary$(EXE) bin/print$(EXE) $(LIBCVODES) ## # Clean up. ## -.PHONY: clean clean-manual clean-all +.PHONY: clean clean-manual clean-all clean-cvodes clean: clean-manual $(RM) -r test @@ -231,8 +231,11 @@ clean: clean-manual clean-manual: cd src/docs/cmdstan-guide; $(RM) *.brf *.aux *.bbl *.blg *.log *.toc *.pdf *.out *.idx *.ilg *.ind *.cb *.cb2 *.upa +clean-cvodes: + $(RM) $(wildcard $(CVODES)/lib/*) + $(RM) $(wildcard $(CVODES)/src/*/*.o) -clean-all: clean +clean-all: clean clean-cvodes $(RM) -r bin ## From 24570ebe3135d684eb87d4045eef583b70ec143e Mon Sep 17 00:00:00 2001 From: Daniel Lee Date: Wed, 17 Aug 2016 21:17:34 -0400 Subject: [PATCH 2/2] Updated code to clean libraries --- makefile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/makefile b/makefile index 8ffc67ab22..de251ff582 100644 --- a/makefile +++ b/makefile @@ -221,7 +221,7 @@ build: bin/stanc$(EXE) bin/stansummary$(EXE) bin/print$(EXE) $(LIBCVODES) ## # Clean up. ## -.PHONY: clean clean-manual clean-all clean-cvodes +.PHONY: clean clean-manual clean-all clean: clean-manual $(RM) -r test @@ -231,11 +231,7 @@ clean: clean-manual clean-manual: cd src/docs/cmdstan-guide; $(RM) *.brf *.aux *.bbl *.blg *.log *.toc *.pdf *.out *.idx *.ilg *.ind *.cb *.cb2 *.upa -clean-cvodes: - $(RM) $(wildcard $(CVODES)/lib/*) - $(RM) $(wildcard $(CVODES)/src/*/*.o) - -clean-all: clean clean-cvodes +clean-all: clean clean-libraries $(RM) -r bin ##