Skip to content

Commit f5e9c80

Browse files
committed
do not install sources for --type=program by default
related to #57
1 parent da18cb2 commit f5e9c80

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

make.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,10 @@ func writeTemplates(dir, gopkg, debsrc, debbin, debversion, pkgType string, depe
569569
defer f.Close()
570570
fmt.Fprintf(f, "#!/usr/bin/make -f\n")
571571
fmt.Fprintf(f, "\n")
572+
if pkgType == "program" {
573+
fmt.Fprintf(f, "override_dh_auto_install:\n")
574+
fmt.Fprintf(f, "\tdh_auto_install -- --no-source\n")
575+
}
572576
fmt.Fprintf(f, "%%:\n")
573577
fmt.Fprintf(f, "\tdh $@ --buildsystem=golang --with=golang\n")
574578

0 commit comments

Comments
 (0)