/Makefile

https://bitbucket.org/mtholder/ottol · Makefile · 37 lines · 26 code · 11 blank · 0 comment · 5 complexity · f80410bd1bb033f114a32b7057cc0cde MD5 · raw file

  1. SUBDIRS = scripts
  2. PRODUCTS = OTToL4taxomachine.txt
  3. all: $(PRODUCTS)
  4. for dir in $(SUBDIRS); do $(MAKE) -C $$dir; done
  5. .PHONY: all
  6. subdirs: $(SUBDIRS)
  7. $(SUBDIRS):
  8. $(MAKE) -C $@
  9. scripts/% :
  10. $(MAKE) -C scripts
  11. OTToL4taxomachine.txt : OTToL.txt scripts/ottol2taxomachine
  12. echo "Building OTToL4taxomachine.txt from OTToL.txt using ottol2taxomachine..."
  13. scripts/ottol2taxomachine OTToL.txt life OTToL4taxomachine.txt
  14. clean:
  15. for dir in $(SUBDIRS); do $(MAKE) -C $$dir clean; done
  16. rm -f $(PRODUCTS)
  17. childless_uninomials.txt : OTToL4taxomachine.txt scripts/childless_uninomials
  18. echo "Checking for leaf nodes that are uninomials..."
  19. scripts/childless_uninomials OTToL4taxomachine.txt life > childless_uninomials.txt
  20. check : childless_uninomials.txt
  21. if ! diff issues/expected_childless_uninomials.txt childless_uninomials.txt > issues/unexpected_childless_uninomials.txt ; \
  22. then \
  23. echo ; echo "Unexpected uninomial taxonomic names found as leaf nodes in the taxonomy"; \
  24. echo "See issues/unexpected_childless_uninomials.txt for the diff output which compares issues/expected_childless_uninomials.txt to childless_uninomials.txt" ; \
  25. false ; \
  26. fi