File: rules

package info (click to toggle)
tinyirc 1%3A1.1.dfsg.1-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 512 kB
  • sloc: ansic: 10,869; makefile: 60
file content (44 lines) | stat: -rwxr-xr-x 930 bytes parent folder | download | duplicates (2)
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
38
39
40
41
42
43
44
#!/usr/bin/make -f

PACKAGE = tinyirc

export DEB_BUILD_MAINT_OPTIONS  = hardening=+all
export DEB_CFLAGS_MAINT_APPEND  = -pedantic -Wall \
 -DPOSIX -DDO_CTCP -DCURSES -DHAVE_NCURSES -std=gnu99

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:
	$(CC) -std=gnu99 -g \
	        -DPOSIX \
		-DCURSES \
		-DHAVE_NCURSES \
		-DHAVE_TIME \
		-DDEFAULTSERVER=\"irc.freenode.org\" \
		-DDEFAULTPORT=6667 \
		tinyirc.c -o tinyirc \
		-lncurses

override_dh_auto_build: man
	dh_auto_build -- \
		tinyirc \
		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