Makefile 736 B

1234567891011121314151617181920212223242526272829303132
  1. PY_AMAZFIT_TOOLS := ~/py_amazfit_tools
  2. WF_NAME := $(shell basename $(shell pwd))
  3. GTR_SIZE := 42
  4. BIN_DIR := ~/Sync/Apps/AmazfitGTR/
  5. DIST_DIR := ${BIN_DIR}/${WF_NAME}
  6. ALL: ${DIST_DIR} \
  7. ${DIST_DIR}/${WF_NAME}_bin.zip \
  8. ${DIST_DIR}/${WF_NAME}.zip \
  9. ${DIST_DIR}/${WF_NAME}.png \
  10. ${DIST_DIR}/${WF_NAME}_packed.bin
  11. ${DIST_DIR}:
  12. mkdir -p ${DIST_DIR}
  13. ${DIST_DIR}/${WF_NAME}_packed.bin: ${WF_NAME}_packed.bin
  14. cp $^ [email protected]
  15. ${WF_NAME}_packed.bin: *.png *.json
  16. python3 ${PY_AMAZFIT_TOOLS}/main.py --gtr ${GTR_SIZE} --file ${WF_NAME}.json
  17. ${DIST_DIR}/${WF_NAME}.png: 0001.png
  18. cp $^ [email protected]
  19. ${DIST_DIR}/${WF_NAME}_bin.zip: ${WF_NAME}_packed.bin
  20. zip [email protected] $^
  21. ${DIST_DIR}/${WF_NAME}.zip: *.png *.json
  22. zip [email protected] $^
  23. clean:
  24. rm -f -- *.log *.zip *.bin