Makefile 505 B

1234567891011121314151617181920212223242526
  1. # ---------- ---------- ---------- ---------- ---------- ----------
  2. #
  3. # api-public-information
  4. #
  5. # ---------- ---------- ---------- ---------- ---------- ----------
  6. target: all
  7. .PHONY: all
  8. all:
  9. @echo "Usage: make [PHONY]"
  10. @sed -n -e '/sed/! s/\.PHONY: //p' Makefile
  11. .PHONY: rebuild
  12. rebuild: clean build
  13. .PHONY: build
  14. build:
  15. @cp -rp src/ output/
  16. @cd output/ && find . -name '*.py' -exec sh -c 'mv "$$0" "$${0%.py}.cgi"' {} \;
  17. @cd output/ && chmod +x *.cgi
  18. .PHONY: clean
  19. clean:
  20. @rm -rf output/