2012-08-30 102 views
0

我想建立包,其中有我不能建立deb包

/package/debtest/ 
/package/debtest/bin 
/package/debtest/bin/E01.bin 
/package/debtest/bin/E02.bin 
/package/debtest/bin/E03.bin`` 
/package/debtest/log 
/package/debtest/mon 

我要安裝到目錄/ opt/debtest/

這是我的規則文件

#!/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. 


install: 

install -d /opt/debtest/ 
install -d /opt/debtest/bin 
install -d /opt/debtest/log 
install -d /opt/debtest//mon 


****# Uncomment this to turn on verbose mode.** 
****#export DH_VERBOSE=1****** 

%: 
    dh [email protected] 

時使用dpkg-buildpackage命令查看此視圖​​

dpkg-source --before-build debtest-1.0 debian/rules clean debian/rules:11:*缺少分隔符。停止。

我該怎麼辦?

+0

我不認爲有一種'dpkg'將你的東西放在'/ opt'中的方法。它有非常好的理由在'/ usr'中安裝,我無法想象這樣一個場景,強制使用它的好處可能會帶來超過缺點的機會。 – tripleee

回答

1

您的Makefile語法無效。如果縮進命令,每個目標應該包含一個數字。縮進必須以字面製表符開頭。儘管如此,你顯然想要完成的事情最好使用debian/dirs文件完成。無論如何,你不會將常規的Makefile目標放在debian/rules文件中。

+0

我不想將這個軟件包的makefile文件複製到目標目錄中。 –

+0

@tripleee謝謝,我的編輯autochangind tab到兩個空格。 –