2012-08-10 4 views
1

github에서 libzip을 복제 했으므로 make를하고 싶지만 오류가 발생합니다. *** '/Makefile.common'대상을 만들 규칙이 없습니다. 복제 된 폴더 (libzip)에는 3 개의 파일 (libzip.spec, sources, Makefile)이 있습니다. 이것은 문제가 될 수있는 Makefile입니다.libzip makefile error : make : *** 타겟`/Makefile.common '을 만드는 규칙이 없습니다. 중지

# 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.common' ('.','../ common /'및'../../ common /')을 찾고 찾지 못합니다. 'Makefile.common'을 빌드 할 규칙이 없으며, 어딘가에서 찾을 수 있습니다. – Beta

+0

복제 한 libzip에 대한 링크는 무엇입니까? 나는이 하나를 시도 : https://github.com/JanX2/libzip-git,하지만 당신이 설명하는 것과 다르게 보이는데, 그것은 잘 작동합니다. –

답변

-1

공식 수은 저장소를 사용하십시오 : http://hg.nih.at/libzip/ 을하고 당신은 여전히 ​​문제가 있다면 저희에게 알려주십시오.

관련 문제