File: rules

package info (click to toggle)
ftplib 4.0-1-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 560 kB
  • sloc: ansic: 1,711; makefile: 66
file content (28 lines) | stat: -rwxr-xr-x 697 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

%:
	dh $@ --sourcedirectory=src

override_dh_auto_build:
	dh_auto_build -- DEBUG="$(DEBUG)"

override_dh_auto_clean:
	$(MAKE) -C src clobber

override_dh_auto_install:
	mkdir -p debian/libftp4/usr/lib/$(DEB_HOST_MULTIARCH)
	cp -a src/libftp.so.* debian/libftp4/usr/lib/$(DEB_HOST_MULTIARCH)
	mkdir -p debian/libftp-dev/usr/lib/$(DEB_HOST_MULTIARCH)
	cp -a src/libftp.a src/libftp.so debian/libftp-dev/usr/lib/$(DEB_HOST_MULTIARCH)

override_dh_compress:
	dh_compress -Xexamples

override_dh_link:
	dh_link
	cd debian/libftp-dev/usr/share/doc/libftp-dev \
		&& mv examples/Makefile.examples examples/Makefile \
		&& $(MAKE) -C examples