Makefile 468 B

123456789101112131415161718192021
  1. all:
  2. swift build -c debug --product Echo
  3. cp .build/debug/Echo .
  4. test: all
  5. ./Echo serve & /bin/echo $$! > echo.pid
  6. ./Echo get | tee test.out
  7. ./Echo expand | tee -a test.out
  8. ./Echo collect | tee -a test.out
  9. ./Echo update | tee -a test.out
  10. kill -9 `cat echo.pid`
  11. diff -u test.out test.gold
  12. project:
  13. swift package generate-xcodeproj
  14. clean :
  15. rm -rf Packages googleapis .build
  16. rm -f Package.pins Echo google.json
  17. rm -rf Package.resolved Echo.xcodeproj Echo