fixed some build dependency
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
hyung-hwan 2023-11-03 22:48:03 +09:00
parent 428f67f25c
commit b913ab5403
3 changed files with 4 additions and 5 deletions

View File

@ -40,9 +40,9 @@ hclgo_SOURCES = \
hclgo_DEPENDENCIES = hclgo.bin hclgo_DEPENDENCIES = hclgo.bin
## let the linker to move hclgo.bin to the actual target ## let the linker to move hclgo.bin to the actual target
hclgo_LINK = mv -f hclgo.bin hclgo$(EXEEXT) || echo "FAILED TO LINK" hclgo_LINK = cp -pf hclgo.bin hclgo$(EXEEXT) || echo "FAILED TO LINK"
hclgo.bin: lib/libhcl.la hclgo.bin: lib/libhcl.la $(hclgo_OBJECTS)
cp -pf $(srcdir)/go.mod $(builddir)/go.mod >/dev/null 2>&1 || true cp -pf $(srcdir)/go.mod $(builddir)/go.mod >/dev/null 2>&1 || true
chmod u+w $(builddir)/go.mod ## with `make distcheck`, the echo's redirection to the file fails without this permission change chmod u+w $(builddir)/go.mod ## with `make distcheck`, the echo's redirection to the file fails without this permission change
sed -r -i -e "/^[[:space:]]*replace[[:space:]]+cfg[[:space:]]*=>/d" $(builddir)/go.mod sed -r -i -e "/^[[:space:]]*replace[[:space:]]+cfg[[:space:]]*=>/d" $(builddir)/go.mod

View File

@ -372,7 +372,7 @@ DIST_SUBDIRS = $(SUBDIRS)
@ENABLE_HCLGO_TRUE@ go.mod @ENABLE_HCLGO_TRUE@ go.mod
@ENABLE_HCLGO_TRUE@hclgo_DEPENDENCIES = hclgo.bin @ENABLE_HCLGO_TRUE@hclgo_DEPENDENCIES = hclgo.bin
@ENABLE_HCLGO_TRUE@hclgo_LINK = mv -f hclgo.bin hclgo$(EXEEXT) || echo "FAILED TO LINK" @ENABLE_HCLGO_TRUE@hclgo_LINK = cp -pf hclgo.bin hclgo$(EXEEXT) || echo "FAILED TO LINK"
all: all-recursive all: all-recursive
.SUFFIXES: .SUFFIXES:
@ -937,7 +937,7 @@ distclean-local:
clean-local: clean-local:
rm -rf $(builddir)/go.mod $(builddir)/go.sum rm -rf $(builddir)/go.mod $(builddir)/go.sum
@ENABLE_HCLGO_TRUE@hclgo.bin: lib/libhcl.la @ENABLE_HCLGO_TRUE@hclgo.bin: lib/libhcl.la $(hclgo_OBJECTS)
@ENABLE_HCLGO_TRUE@ cp -pf $(srcdir)/go.mod $(builddir)/go.mod >/dev/null 2>&1 || true @ENABLE_HCLGO_TRUE@ cp -pf $(srcdir)/go.mod $(builddir)/go.mod >/dev/null 2>&1 || true
@ENABLE_HCLGO_TRUE@ chmod u+w $(builddir)/go.mod ## with `make distcheck`, the echo's redirection to the file fails without this permission change @ENABLE_HCLGO_TRUE@ chmod u+w $(builddir)/go.mod ## with `make distcheck`, the echo's redirection to the file fails without this permission change
@ENABLE_HCLGO_TRUE@ sed -r -i -e "/^[[:space:]]*replace[[:space:]]+cfg[[:space:]]*=>/d" $(builddir)/go.mod @ENABLE_HCLGO_TRUE@ sed -r -i -e "/^[[:space:]]*replace[[:space:]]+cfg[[:space:]]*=>/d" $(builddir)/go.mod

View File

@ -125,7 +125,6 @@ func main() {
} }
x.Close() x.Close()
os.Exit(0) os.Exit(0)
oops: oops: