【发布时间】:2014-07-11 15:09:18
【问题描述】:
以下是我的 Makefile 的一部分(有错误)。我只想要 epoch 和 epoch max 之间的差异并打印它们。但我不确定错误是什么。有人可以帮我解决这个问题。 谢谢
EPOCH_MAX = 1400000000
identifier:
epoch = $(shell date +%s)
echo $(epoch)
residue = $(epoch)-$(EPOCH_MAX)
echo $(residue)
我收到以下错误
epoch = 1400767572
make: epoch: Command not found
make: *** [identifier] Error 127
【问题讨论】:
标签: bash makefile epoch gnu-make