2012-06-24 7 views
1

내가 파일을 만들어 관리하는 몇 가지 튜토리얼을 읽기 전에 debuild데비안/규칙 오류 동안 이라구 포장

와 뎁 파일을 만드는 몇 가지 문제가 발생하지만 난 항상이 오류를 얻을 :

make: *** No rule to make target «build». Stop. 
    dpkg-buildpackage: failure: debian/rules build gave error exit status 2 
    debuild: fatal error at line 1329: 
    dpkg-buildpackage -rfakeroot -D -us -uc -b failed 

도움이 필요하십니까 ??

+1

대상이 빌드에 따라 설치 ...

#!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 build-stamp: configure-stamp dh_testdir touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp dh_clean install: build dh_testdir dh_testroot dh_clean -k dh_installdirs $(MAKE) install DESTDIR=$(CURDIR)/debian/pycounter mkdir -p $(CURDIR)/debian/pycounter # Copy .py files cp pycounter.py $(CURDIR)/debian/pycounter/opt/extras.ubuntu.com/pycounter/pycounter.py cp prefs.py $(CURDIR)/debian/pycounter/opt/extras.ubuntu.com/pycounter/prefs.py # desktop copyright and others (not complete, check) cp extras-pycounter.desktop $(CURDIR)/debian/pycounter/usr/share/applications/extras-pycounter.desktop 
Flexo

+0

나는 또한 어디에도 'sudo'가 보이지 않는다. http://manpages.ubuntu.com/manpages/precise/man1/make.1.html –

+1

캐치 올 대상 (% : dh $ @)을 debian/rules –

답변

1

다시 데비안 매뉴얼 페이지를 확인, 처음부터 새 파일을 만들고, 그것을 고정하지만이 :

내 데비안 규칙 파일입니다 당신이 보여준 파일에는 빌드가 없습니다.