25 lines
587 B
Makefile
Executable file
25 lines
587 B
Makefile
Executable file
#!/usr/bin/make -f
|
|
|
|
include /usr/share/dpkg/architecture.mk
|
|
|
|
ifeq ($(origin CXX),default)
|
|
CXX := $(DEB_HOST_GNU_TYPE)-g++
|
|
endif
|
|
|
|
%:
|
|
dh ${@}
|
|
|
|
override_dh_auto_configure:
|
|
LDFLAGS="${LDFLAGS} -static" dh_auto_configure -- --exec-prefix=/ CXX=$(CXX)
|
|
|
|
override_dh_auto_install:
|
|
dh_auto_install -- DESTDIR=$(CURDIR)/debian/zutils
|
|
|
|
# removing unused files
|
|
rm -f debian/zutils/usr/share/info/dir*
|
|
|
|
override_dh_gencontrol:
|
|
dh_gencontrol -- -Vbuilt-using="glibc (= $$(dpkg-query --show --showformat='$${source:Version}' libc-dev-bin))"
|
|
|
|
override_dh_strip:
|
|
dh_strip --dbg-package=zutils-dbg
|