libzip makefile错误:make:***没有规则来制作目标`/Makefile.common'。停止

时间:2012-08-10 09:27:48

标签: makefile zip

我从github克隆了libzip,现在想做make但是它给出了一个错误***没有规则让目标'/Makefile.common'停止。克隆文件夹(libzip)有3个文件(libzip.spec,sources,Makefile)。这是Makefile,可能是什么问题。

# This makefile is downloading any file found in 
# the 'sources' file already existing in this directory
# and validating the sha256sum of the archive against it.
NAME := libzip

define find-common-dir
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then echo "$$d"; break ; fi ; done
endef
COMMON_DIR := $(shell $(find-common-dir))

include $(COMMON_DIR)/Makefile.common

SOURCEFILES := $(shell cat sources 2>/dev/null | awk '{ print $$2 }' | awk -F'*' '{ print $$2 }')

sources: $(SOURCEFILES)

$(SOURCEFILES):
    @for sourcefile in $(SOURCEFILES); do \
        $(CLIENT) $(LOOKASIDE_URI)/$(NAME)/$${sourcefile}; \
    done

    sha256sum -c sources || ( echo 'SHA256 check failed' && rm $(SOURCEFILES); exit 1 )

clean:
    rm $(SOURCEFILES)

1 个答案:

答案 0 :(得分:-1)

请使用官方的mercurial存储库: http://hg.nih.at/libzip/ 如果你还有问题,请告诉我们。