summaryrefslogtreecommitdiff
path: root/pnotify/pnotify-0.2/Makefile.am
blob: ef63f602c663d6397d3724d1b1cab281204f93cd (plain)
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
45
46
47
48
49
50
51
#		$Id: $		

#
# Copyright (c) 2007 Mark Heily <devel@heily.com>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#

libpnotify_a_SOURCES=	pnotify.c
include_HEADERS=	pnotify.h
noinst_HEADERS=		queue.h
lib_LIBRARIES=		libpnotify.a
libpnotify_a_CFLAGS=	-O2 -g -Wall
dist_man3_MANS=		pnotify.3
EXTRA_DIST=		index.html 

#
# Unit testing program
# 
TESTS=			test
check_PROGRAMS=		test
test_SOURCES=		test.c pnotify.c
test_CFLAGS=		-DPNOTIFY_DEBUG=1

# Preview the manpage in the current terminal window
preview-man:
	nroff -Tascii -mandoc pnotify.3 | less

# The 'doc' target generates additional documentation
doc:
	groff -Thtml -mandoc pnotify.3 > manpage.html
	groff -Tps -mandoc pnotify.3 > manpage.ps
	lynx -dump index.html > README

# The 'sync' target rebuilds the webpage and uploads it to the public server

sync:		doc
	scp index.html manpage.html manpage.ps $$WWWHOST:~/public_html/pnotify

# Ensure that the documentation is regenerated when building a source tarball
dist-hook:	doc