Makefile 314 B

1234567891011121314151617
  1. # buildEnv will call make with the default argument, so leave VERSION as first
  2. # target to avoid errors.
  3. VERSION:
  4. git describe | cut -d'-' -f1 | tr -d 'v\n' > VERSION
  5. .PHONY: build
  6. build: VERSION
  7. nix build
  8. .PHONY: build-full
  9. build-full: VERSION
  10. nix build '.#full'
  11. .PHONY: clean
  12. clean:
  13. -rm -f VERSION result