github.com/MichaelDarr/ahab@v0.0.0-20200528062404-c74c5106e605/build/deb/template/rules (about)

     1  #!/usr/bin/make -f
     2  # See debhelper(7) (uncomment to enable)
     3  # output every command that modifies files on the build system.
     4  #export DH_VERBOSE = 1
     5  
     6  
     7  # see FEATURE AREAS in dpkg-buildflags(1)
     8  #export DEB_BUILD_MAINT_OPTIONS = hardening=+all
     9  
    10  # see ENVIRONMENT in dpkg-buildflags(1)
    11  # package maintainers to append CFLAGS
    12  #export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
    13  # package maintainers to append LDFLAGS
    14  #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
    15  
    16  export EXTRA_GOFLAGS:=-buildmode=pie -gcflags all=-trimpath=${CURDIR} -asmflags all=-trimpath=${CURDIR}
    17  
    18  LDFLAGS:=-linkmode external -extldflags "${LDFLAGS}"
    19  export LDFLAGS
    20  
    21  %:
    22  	mkdir -p /tmp/gocache
    23  	GOCACHE=/tmp/gocache dh $@
    24  
    25  override_dh_auto_test:
    26  
    27  override_dh_auto_install:
    28  	$(MAKE) DESTDIR=debian/ahab PREFIX=/usr install