Python Library Caching
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

Makefile 366B

1234567891011121314151617181920
  1. EXAMPLES = $(wildcard *.py)
  2. FIRSTLOGS = ${EXAMPLES:.py=_1.log}
  3. LASTLOGS = ${EXAMPLES:.py=_2.log}
  4. .PHONY: all
  5. .SECONDAY: $(FIRSTLOGS)
  6. all: $(LASTLOGS)
  7. %_1.log: %.py
  8. rm -f *.json *.pickle
  9. python3 $< > $@
  10. %_2.log: %.py %_1.log
  11. python3 $< > $@
  12. rm -f *.json *.pickle
  13. clean:
  14. @echo "\e[1m * Example logs...\e[0m"
  15. @rm -f $(FIRSTLOGS) $(LASTLOGS) *.json *.pickle