1
0
Fork 0
clzip/debian/rules
Daniel Baumann f889d2d3e6
Including buildtools.mk unconditionally in rules.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-02-17 20:48:50 +01:00

26 lines
800 B
Makefile
Executable file

#!/usr/bin/make -f
include /usr/share/dpkg/buildtools.mk
%:
dh ${@}
override_dh_auto_configure:
dh_auto_configure -- 'CC=$(CC) -g'
override_dh_auto_install:
dh_auto_install -- DESTDIR=$(CURDIR)/debian/clzip
execute_after_dh_auto_install:
# update-alternatives
mv debian/clzip/usr/bin/clzip debian/clzip/usr/bin/lzip.clzip
ln -s /usr/bin/lzip.clzip debian/clzip/usr/bin/clzip
mv debian/clzip/usr/share/info/clzip.info debian/clzip/usr/share/info/lzip.clzip.info
ln -s /usr/share/info/lzip.clzip.info.gz debian/clzip/usr/share/info/clzip.info.gz
mv debian/clzip/usr/share/man/man1/clzip.1 debian/clzip/usr/share/man/man1/lzip.clzip.1
ln -s /usr/share/man/man1/lzip.clzip.1.gz debian/clzip/usr/share/man/man1/clzip.1.gz
# removing unused files
rm -f debian/clzip/usr/share/info/dir*