aight is a command-line tool for getting todo tasks quickly.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

44 lines
671 B

  1. .PHONY: all install build test run clean
  2. ifdef USEINSTALL
  3. INSTALLEXEC := install -Dm755
  4. INSTALL := install -Dm644
  5. else
  6. INSTALLEXEC := sudo cp -f
  7. INSTALL := sudo cp -f
  8. endif
  9. UNAME := $(shell uname)
  10. ifeq ($(UNAME),Darwin)
  11. OS_FLAG := OSX
  12. endif
  13. all: build test
  14. DESTDIR?=
  15. install: build
  16. ifeq ($(OS_FLAG),OSX)
  17. $(INSTALLEXEC) "./aight" "${DESTDIR}/usr/local/bin/aight"
  18. else
  19. $(INSTALLEXEC) "./aight" "${DESTDIR}/usr/bin/aight"
  20. $(INSTALL) "./LICENSE" "${DESTDIR}/usr/share/licenses/aight/LICENSE"
  21. endif
  22. build:
  23. dub build
  24. test:
  25. dub test
  26. run: aight
  27. ./aight
  28. clean:
  29. rm -rf pkg/
  30. rm -rf src/
  31. rm -rf AIGHT/
  32. rm -f aight-*.pkg.tar
  33. rm -f aight-test-library
  34. rm -f aight