Makefile 414 B

123456789101112131415
  1. #!make
  2. include config.env
  3. SHELL := /bin/bash
  4. export $(shell sed 's/=.*//' config.env)
  5. # for development, create a file called config.env (clone example.env)
  6. # and fill in your keys
  7. run:
  8. go run ./cli \
  9. --bookstack-url=$(BookStackEndpoint) \
  10. --token-id=$(BookStackAPITokenID) \
  11. --token-secret=$(BookStackAPITokenSecret) \
  12. --download-location="./book-test/src"
  13. build:
  14. go build -o ./bin/bookstack2site ./cli