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