Skip to content

Commit

Permalink
Allow to build without .git/
Browse files Browse the repository at this point in the history
  • Loading branch information
ushitora-anqou committed Jun 15, 2020
1 parent 55acfe5 commit ff600c0
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ build/kvsp:
mkdir -p build/kvsp
cd kvsp && \
go build -o ../build/kvsp/kvsp -ldflags "\
-X main.kvspVersion=$$(git describe --tags --abbrev=0) \
-X main.kvspRevision=$$(git rev-parse --short HEAD) \
-X main.iyokanRevision=$$(git -C ../Iyokan rev-parse --short HEAD) \
-X main.iyokanL1Revision=$$(git -C ../Iyokan-L1 rev-parse --short HEAD) \
-X main.cahpRubyRevision=$$(git -C ../cahp-ruby rev-parse --short HEAD) \
-X main.cahpPearlRevision=$$(git -C ../cahp-pearl rev-parse --short HEAD) \
-X main.cahpRtRevision=$$(git -C ../cahp-rt rev-parse --short HEAD) \
-X main.cahpSimRevision=$$(git -C ../cahp-sim rev-parse --short HEAD) \
-X main.llvmCahpRevision=$$(git -C ../llvm-cahp rev-parse --short HEAD) \
-X main.yosysRevision=$$(git -C ../yosys rev-parse --short HEAD)"
-X main.kvspVersion=$$(git describe --tags --abbrev=0 || echo "unk") \
-X main.kvspRevision=$$(git rev-parse --short HEAD || echo "unk") \
-X main.iyokanRevision=$$(git -C ../Iyokan rev-parse --short HEAD || echo "unk") \
-X main.iyokanL1Revision=$$(git -C ../Iyokan-L1 rev-parse --short HEAD || echo "unk") \
-X main.cahpRubyRevision=$$(git -C ../cahp-ruby rev-parse --short HEAD || echo "unk") \
-X main.cahpPearlRevision=$$(git -C ../cahp-pearl rev-parse --short HEAD || echo "unk") \
-X main.cahpRtRevision=$$(git -C ../cahp-rt rev-parse --short HEAD || echo "unk") \
-X main.cahpSimRevision=$$(git -C ../cahp-sim rev-parse --short HEAD || echo "unk") \
-X main.llvmCahpRevision=$$(git -C ../llvm-cahp rev-parse --short HEAD || echo "unk") \
-X main.yosysRevision=$$(git -C ../yosys rev-parse --short HEAD || echo "unk")"
cp build/kvsp/kvsp build/bin/

build/Iyokan:
Expand Down

0 comments on commit ff600c0

Please sign in to comment.