0

我想构建具有

/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-build debtest-1.0 debian/rules clean debian/rules:11: *缺少分隔符。停止。

我该怎么做?

4

1 回答 1

1

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

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

于 2012-08-30T05:08:38.267 回答