2012-08-10 76 views
1

我從github克隆了libzip,現在想做make,但是它給出了一個錯誤***沒有規則讓目標'/Makefile.common'停止。克隆文件夾(libzip)有3個文件(libzip.spec,sources,Makefile)。這是Makefile,可能是什麼問題。libzip makefile錯誤:make:***目標`/Makefile.common'沒有規則。 Stop

# 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) 
+0

這個makefile正在尋找'Makefile.common'(在'.','../ common /'和'../../ common /'中)並且沒有找到它。它沒有規則來構建'Makefile.common',它只是希望找到它。 – Beta 2012-08-10 11:30:20

+0

什麼是你克隆的libzip的鏈接?我試過這個:https://github.com/JanX2/libzip-git,但它看起來與你描述的不一樣,並且它工作正常。 – 2012-08-12 03:00:26

回答

相關問題