File: rules

package info (click to toggle)
desproxy 0.1.0~pre3-10.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 436 kB
  • sloc: ansic: 1,753; makefile: 81; sh: 29
file content (30 lines) | stat: -rwxr-xr-x 809 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
29
30
#!/usr/bin/make -f

PACKAGE = desproxy

export DEB_BUILD_MAINT_OPTIONS	= hardening=+all
export DEB_CFLAGS_MAINT_APPEND	= -Wall -pedantic -fcommon
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

man:
	$(MAKE) -C debian -f pod2man.mk PACKAGE=$(PACKAGE) makeman
	$(MAKE) -C debian -f pod2man.mk PACKAGE=$(PACKAGE)-dns makeman
	$(MAKE) -C debian -f pod2man.mk PACKAGE=$(PACKAGE)-inetd makeman
	$(MAKE) -C debian -f pod2man.mk PACKAGE=socket2socket makeman
	$(MAKE) -C debian -f pod2man.mk PACKAGE=$(PACKAGE)-socksserver \
	makeman

override_dh_auto_build:
	$(MAKE) CC="$(CC) $(CPPFLAGS)" CFLAGS="$(CFLAGS) $(LDFLAGS)"

override_dh_auto_install: man
	dh_auto_install
	# Remove unused directory created by 'make install'
	rmdir $(CURDIR)/debian/$(PACKAGE)/usr/share/locale

%:
	dh $@

.PHONY: man

# End of file