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

clean makefile target. make all works after using it. #1603

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/envo/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -578,4 +578,5 @@ fill: envo-edit.csv
#modules/%.tsv:
# blip-findall -i patterns/spec.obo -consult pmaker.pro -r envo -r chebi -r pato pattern_$*/3 -no_pred -label -use_tabs > $@

include envo.Makefile
include envo.Makefile
include clean.Makefile
43 changes: 43 additions & 0 deletions src/envo/clean.Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# prototype from ChatGPT

.PHONY: clean

clean:
# Remove temporary and intermediate files
rm -rf $(TMPDIR)/
rm -rf tmp/
cp reports/report_profile_edit.txt report_profile_edit.txt
rm -rf reports/* # need to keep reports/report_profile_edit.txt
cp report_profile_edit.txt reports/report_profile_edit.txt
rm -rf modules/*.tmp.owl
rm -rf modules/*.obo
#rm -rf modules/*.owl # how are these recreated?
rm -rf mirror/*.owl
#rm -rf imports/*.owl # how are these recreated?
rm -rf imports/*.obo
rm -rf patterns/matches/logical/
rm -rf patterns/matches/annotations/

# Remove generated ontology files
rm -f $(ONT).owl $(ONT).obo $(ONT).json
rm -f $(ONT)-full.owl $(ONT)-full.obo $(ONT)-full.json
rm -f $(ONT)-base.owl $(ONT)-base.obo $(ONT)-base.json
#rm -f $(SRC) $(PRE_SRC) # $(SRC) = ??? ; $(PRE_SRC) = ???

# Remove subset files
rm -f subsets/*.owl subsets/*.obo subsets/*.json subsets/*.tsv

# Remove downloaded or mirrored external ontologies
rm -rf mirror/
rm -f GO.xrf_abbs

# Remove any temporary downloads or caches
rm -rf diffs/
rm -f *.tmp
rm -f *.log

# Optional: Remove release artifacts if generated
rm -rf $(RELEASEDIR)/$(ONT).owl $(RELEASEDIR)/$(ONT).obo $(RELEASEDIR)/$(ONT).json
rm -rf $(RELEASEDIR)/subsets/
rm -rf $(RELEASEDIR)/mappings/
rm -rf $(RELEASEDIR)/imports/
Loading