Gérer sa collection de jeux vidéos, consoles et figurines. Et plus si affinités.
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.

Makefile 860B

123456789101112131415161718192021222324252627282930313233343536373839
  1. APP := $(shell head -n 1 "shard.yml"|cut -d ':' -f 2|tr -d ' ')
  2. VERSION := $(shell sed '2!d' "shard.yml"|cut -d ':' -f 2|tr -d ' ')
  3. DEST = /tmp/${APP}
  4. all: build
  5. bin:
  6. mkdir -p bin
  7. bin/${APP}:
  8. crystal build src/${APP}.cr -o bin/${APP} --release --stats
  9. bin/amber:
  10. crystal build lib/amber/src/amber/cli.cr -o bin/amber --stats
  11. build: bin bin/${APP} bin/amber
  12. dependencies:
  13. shards install
  14. ${DEST}:
  15. mkdir -p ${DEST}
  16. ${APP}-${VERSION}.tar.gz: build ${DEST}
  17. mkdir -p ${DEST}/config/environments/ ${DEST}/src/locales
  18. cp -r bin/ ${DEST}/
  19. cp -r db/ ${DEST}/
  20. cp -r public/ ${DEST}/
  21. cp -r src/locales ${DEST}/src/locales
  22. cp config/environments/.production.enc ${DEST}/config/environments/
  23. tar cvfJ "${APP}-${VERSION}.tar.xz" -C /tmp/ ${APP}
  24. rm -rf ${DEST}
  25. extract: ${APP}-${VERSION}.tar.gz
  26. clean:
  27. rm -f bin/amber
  28. rm -f bin/${APP}
  29. rm -rf ${DEST}