Makefile 385 B

1234567891011121314151617181920
  1. prefix=/usr/local
  2. SOURCE_FILE=git_archive_all.py
  3. TARGET_DIR=$(prefix)/bin
  4. TARGET_FILE=$(TARGET_DIR)/git-archive-all
  5. all:
  6. @echo "usage: make install"
  7. @echo " make uninstall"
  8. @echo " test"
  9. test:
  10. python setup.py test
  11. install:
  12. install -d -m 0755 $(TARGET_DIR)
  13. install -m 0755 $(SOURCE_FILE) $(TARGET_FILE)
  14. uninstall:
  15. test -d $(TARGET_DIR) && \
  16. rm -f $(TARGET_FILE)