Skip to content

Commit

Permalink
clean makefiel target. make all works after using it.
Browse files Browse the repository at this point in the history
  • Loading branch information
turbomam committed Jan 16, 2025
1 parent 4fd549c commit 30ea34d
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
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/

0 comments on commit 30ea34d

Please sign in to comment.