Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rule for cleaning up compiled stan programs #773

Merged
merged 1 commit into from Nov 26, 2019
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

@@ -205,7 +205,7 @@ endif
##
# Clean up.
##
.PHONY: clean clean-deps clean-manual clean-all
.PHONY: clean clean-deps clean-manual clean-all clean-program

clean: clean-manual
$(RM) -r test
@@ -227,6 +227,15 @@ clean-all: clean clean-deps clean-libraries clean-manual
$(RM) -r $(CMDSTAN_MAIN_O)
$(RM) $(wildcard $(STAN)src/stan/model/model_header.hpp.gch)

clean-program:
ifndef STANPROG
$(error STANPROG not set)
endif
$(RM) $(wildcard $(patsubst %.stan,%.d,$(basename ${STANPROG}).stan))
$(RM) $(wildcard $(patsubst %.stan,%.hpp,$(basename ${STANPROG}).stan))
$(RM) $(wildcard $(patsubst %.stan,%.o,$(basename ${STANPROG}).stan))
$(RM) $(wildcard $(patsubst %.stan,%$(EXE),$(basename ${STANPROG}).stan))

##
# Submodule related tasks
##
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.