我想构建具有
的包/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 /规则清洁 debian / rules:11: * 缺少分隔符。停止。
我该怎么做?
答案 0 :(得分:1)
您的Makefile语法无效。如果缩进命令,每个目标应包含一个数字。缩进必须以文字制表符开头。
尽管如此,使用debian/dirs
文件可以更好地完成您显然要完成的任务。无论如何,您都不会在debian/rules
文件中放置常规的Makefile目标。