繁体   English   中英

我无法建立Deb套件

[英]I cannot build deb package

我想建立有

/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 $@ 

当使用dpkg-buildpackage命令时,它会显示

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

我该怎么做?

您的Makefile语法无效。 如果缩进命令,则每个目标应包含一个数字。 缩进必须以文字制表符开头。

不过,显然您要完成的工作最好是使用debian/dirs文件来完成。 无论如何,您都不会在debian/rules文件中放置常规Makefile目标。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM