File: rules

package info (click to toggle)
tinyirc 1:1.1.dfsg.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 496 kB
  • ctags: 1,325
  • sloc: ansic: 10,851; makefile: 53
file content (37 lines) | stat: -rwxr-xr-x 862 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
31
32
33
34
35
36
37
#!/usr/bin/make -f

PACKAGE = tinyirc

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

man:
	# target: man - convert *.pod to manual page
	$(MAKE) -C debian -f pod2man.mk PACKAGE=$(PACKAGE) \
	PODCENTER="Misc" MANSECT=1 makeman

# For manual testing.
debug:
	gcc -DPOSIX  -O -DDEFAULTSERVER=\"irc.freenode.org\" -DDEFAULTPORT=6667 \
		-g tinyirc.c -o tinyirc -lncurses

override_dh_auto_build: man
	$(MAKE) tinyirc \
		CC='gcc' \
		CFLAGS='$(CPPFLAGS) $(CFLAGS) $(LDFLAGS)' \
		LIBS='-lncurses' \
		DEFINES='-DPOSIX -DDEFAULTSERVER=\"irc.freenode.org\" -DDEFAULTPORT=6667'

override_dh_installchangelogs:
	dh_installchangelogs announce

override_dh_auto_clean:
	# Skip. There is no such Makefile target

%:
	dh $@

.PHONY: man

# End of file