diff --git a/template.go b/template.go index a1a1687..e4c7dcf 100644 --- a/template.go +++ b/template.go @@ -86,6 +86,7 @@ func writeDebianGitIgnore(dir, debLib, debProg string, pkgType packageType) erro fmt.Fprintf(f, "*.log\n") fmt.Fprintf(f, "*.substvars\n") fmt.Fprintf(f, "/.debhelper/\n") + fmt.Fprintf(f, "/build/\n") fmt.Fprintf(f, "/debhelper-build-stamp\n") fmt.Fprintf(f, "/files\n") @@ -299,7 +300,7 @@ func writeDebianRules(dir string, pkgType packageType) error { fmt.Fprintf(f, "#!/usr/bin/make -f\n") fmt.Fprintf(f, "\n") fmt.Fprintf(f, "%%:\n") - fmt.Fprintf(f, "\tdh $@ --builddirectory=_build --buildsystem=golang\n") + fmt.Fprintf(f, "\tdh $@ --builddirectory=debian/build --buildsystem=golang\n") if pkgType == typeProgram { fmt.Fprintf(f, "\n") fmt.Fprintf(f, "override_dh_auto_install:\n")