Reputation: 11
I want to build package which have
/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
I want to install to directory /opt/debtest/
This is my rule file
#!/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 $@
when use dpkg-buildpackage command it view this
dpkg-source --before-build debtest-1.0 debian/rules clean debian/rules:11: * missing separator. Stop.
How can I do it?
Upvotes: 0
Views: 2009
Reputation: 189337
You have invalid Makefile syntax. Each target should contain a number if indented commands. The indentation must begin with a literal tab character.
What you are apparently trying to accomplish is better done with a debian/dirs
file, though. You don't put regular Makefile targets in a debian/rules
file anyway.
Upvotes: 1