aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 78510ff25712823b448ebab614150ff37fb40e1d (plain) (blame)
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
M=share/man
I=lib/perl5/Net/PSYC.pm lib/perl5/Net/PSYC/Event.pm lib/perl5/Net/PSYC/Event/Event.pm lib/perl5/Net/PSYC/Event/Glib.pm lib/perl5/Net/PSYC/Event/IO_Select.pm lib/perl5/Net/PSYC/Client.pm bin/psycion bin/remotor
D=$(DESTDIR)

manuals: htdocs $I
	perldoc -o nroff lib/perl5/Net/PSYC.pm >$M/man3/Net::PSYC.3
	perldoc -o nroff lib/perl5/Net/PSYC/Event.pm >$M/man3/Net::PSYC::Event.3
#	perldoc -o nroff lib/perl5/Net/PSYC/Event/Event.pm >$M/man3/Net::PSYC::Event::Event.3
#	perldoc -o nroff lib/perl5/Net/PSYC/Event/Glib.pm >$M/man3/Net::PSYC::Event::Glib.3
#	perldoc -o nroff lib/perl5/Net/PSYC/Event/IO_Select.pm >$M/man3/Net::PSYC::Event::IO_Select.3
	perldoc -o nroff lib/perl5/Net/PSYC/Client.pm >$M/man3/Net::PSYC::Client.3
	perldoc -o nroff bin/psycion >$M/man1/psycion.1
	perldoc -o nroff bin/remotor >$M/man1/remotor.1
	perldoc -o nroff bin/psycamp >$M/man1/psycamp.1
	perldoc -o nroff bin/psyccat >$M/man1/psyccat.1
	perldoc -o nroff bin/psyccmd >$M/man1/psyccmd.1
	perldoc -o nroff bin/psycplay >$M/man1/psycplay.1
	perldoc -o nroff bin/psyclisten >$M/man1/psyclisten.1
	perldoc -o nroff bin/syslog2psyc >$M/man1/syslog2psyc.1

html: htdocs
	perldoc -o html bin/remotor >htdocs/remotor.html
	perldoc -o html bin/psycion >htdocs/psycion.html
	perldoc -o html bin/psycamp >htdocs/psycamp.html
	perldoc -o html bin/psyccat >htdocs/psyccat.html
	perldoc -o html bin/psyccmd >htdocs/psyccmd.html
	perldoc -o html bin/psycplay >htdocs/psycplay.html
	perldoc -o html bin/psyclisten >htdocs/psyclisten.html
	perldoc -o html bin/syslog2psyc >htdocs/syslog2psyc.html

htdocs:
	mkdir -p $@ $M/man1 $M/man3

# just to give you a rough idea
install: $D/share
	# please provide destination prefix in export DESTDIR=/usr/local or so
	ln -f bin/psyccmd bin/psycplay
	install bin/* $D/bin
	ln -f $D/bin/psyccmd $D/bin/psycplay
	cp -rp lib/* $D/lib
	cp -rp share/* $D/share