mirror of
https://github.com/rfc1036/whois.git
synced 2026-02-02 06:24:08 +00:00
47 lines
806 B
Makefile
Executable File
47 lines
806 B
Makefile
Executable File
#!/usr/bin/make -f
|
|
# Original version Copyright by Ian Jackson.
|
|
|
|
SHELL+= -e
|
|
|
|
#export DH_VERBOSE=1
|
|
|
|
build:
|
|
$(checkdir)
|
|
make whois mkpasswd OPTS="-O2 -g -DCONFIG_FILE=\\\"/etc/whois.conf\\\""
|
|
touch build
|
|
|
|
clean:
|
|
$(checkdir)
|
|
-rm -f build
|
|
-make distclean
|
|
-cd debian && rm -rf tmp files* substvars *debhelper
|
|
|
|
binary-arch: checkroot build
|
|
$(checkdir)
|
|
-rm -rf debian/tmp
|
|
|
|
dh_installdirs usr/bin
|
|
install whois mkpasswd debian/tmp/usr/bin/
|
|
cd po && make install BASEDIR=../debian/tmp
|
|
dh_installmanpages
|
|
dh_installdocs README
|
|
dh_installchangelogs
|
|
dh_strip
|
|
dh_compress
|
|
dh_fixperms
|
|
dh_shlibdeps
|
|
dh_gencontrol
|
|
dh_installdeb
|
|
dh_builddeb
|
|
|
|
define checkdir
|
|
test -f debian/rules
|
|
endef
|
|
|
|
binary: binary-arch
|
|
|
|
checkroot:
|
|
test root = "`whoami`"
|
|
|
|
.PHONY: binary binary-arch binary-indep clean checkroot
|