updated go/Makefile.am
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
hyung-hwan 2023-10-29 00:35:22 +09:00
parent 463f112ae5
commit dc01f41773
2 changed files with 4 additions and 2 deletions

View File

@ -28,6 +28,7 @@ hclgo.bin:
[ -f $(srcdir)/go.sum ] && cp -pf $(srcdir)/go.sum $(builddir)/go.sum >/dev/null 2>&1 || true [ -f $(srcdir)/go.sum ] && cp -pf $(srcdir)/go.sum $(builddir)/go.sum >/dev/null 2>&1 || true
go build -C $(srcdir) -x -o $(abs_builddir)/hclgo.bin -modfile $(abs_builddir)/go.mod go build -C $(srcdir) -x -o $(abs_builddir)/hclgo.bin -modfile $(abs_builddir)/go.mod
go clean -C $(srcdir) -x -modfile $(abs_builddir)/go.mod go clean -C $(srcdir) -x -modfile $(abs_builddir)/go.mod
rm -rf $(builddir)/go.mod $(builddir)/go.sum
## the go to o recipe is fake to deceive make ## the go to o recipe is fake to deceive make
.go.o: .go.o:
@ -38,4 +39,4 @@ hclgo.bin:
clean-local: clean-local:
rm -rf $(abs_builddir)/go.mod $(abs_builddir)/go.sum rm -rf $(builddir)/go.mod $(builddir)/go.sum

View File

@ -626,6 +626,7 @@ hclgo.bin:
[ -f $(srcdir)/go.sum ] && cp -pf $(srcdir)/go.sum $(builddir)/go.sum >/dev/null 2>&1 || true [ -f $(srcdir)/go.sum ] && cp -pf $(srcdir)/go.sum $(builddir)/go.sum >/dev/null 2>&1 || true
go build -C $(srcdir) -x -o $(abs_builddir)/hclgo.bin -modfile $(abs_builddir)/go.mod go build -C $(srcdir) -x -o $(abs_builddir)/hclgo.bin -modfile $(abs_builddir)/go.mod
go clean -C $(srcdir) -x -modfile $(abs_builddir)/go.mod go clean -C $(srcdir) -x -modfile $(abs_builddir)/go.mod
rm -rf $(builddir)/go.mod $(builddir)/go.sum
.go.o: .go.o:
echo $< > $@ echo $< > $@
@ -634,7 +635,7 @@ hclgo.bin:
echo $< > $@ echo $< > $@
clean-local: clean-local:
rm -rf $(abs_builddir)/go.mod $(abs_builddir)/go.sum rm -rf $(builddir)/go.mod $(builddir)/go.sum
# Tell versions [3.59,3.63) of GNU make to not export all variables. # Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded. # Otherwise a system limit (for SysV at least) may be exceeded.