简体   繁体   中英

I cannot build deb package

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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