1# $Id: Makefile.am,v 1.6 2009/12/23 02:03:10 sbajic Exp $
2#
3# autoconf (GNU Autoconf) 2.59
4# ltmain.sh (GNU libtool) 1.5.6
5# automake (GNU automake) 1.9.2
6
7includedir=@includedir@/dspam
8
9SUBDIRS = .
10DIST_SUBDIRS = .
11
12man_MANS =			\
13	dspam.1			\
14	dspam_admin.1		\
15	dspam_clean.1		\
16	dspam_crc.1		\
17	dspam_dump.1		\
18	dspam_logrotate.1	\
19	dspam_merge.1		\
20	dspam_stats.1		\
21	dspam_train.1		\
22	libdspam.3
23
24EXTRA_DIST =			\
25	dspam.1			\
26	dspam_admin.1		\
27	dspam_clean.1		\
28	dspam_crc.1		\
29	dspam_dump.1		\
30	dspam_logrotate.1	\
31	dspam_merge.1		\
32	dspam_stats.1		\
33	dspam_train.1		\
34	libdspam.3
35
36MAINTAINERCLEANFILES = Makefile.in
37
38DEFS = @DEFS@
39
40# Failing of chgrp is expected and normal case when someone do
41#   make install DESTDIR=...
42# from user other than root (from user not included in the `mail' group
43# is exactly), and only after this and after checking what was installed
44# changes ownership.
45#
46# Caveat: creating the $(dspam_home) in the install-exec-hook is not the
47# right way, but for some (unknown to me) reason `installdirs-local'
48# target have no chances to be executed under automake-1.7.3 (at least).
49#
50# Solaris' ln seems to have a problem with -sf and existing symlinks.
51install-data-hook:
52	rm -f $(DESTDIR)$(mandir)/man3/dspam_addattribute.3
53	rm -f $(DESTDIR)$(mandir)/man3/dspam_attach.3
54	rm -f $(DESTDIR)$(mandir)/man3/dspam_clearattributes.3
55	rm -f $(DESTDIR)$(mandir)/man3/dspam_create.3
56	rm -f $(DESTDIR)$(mandir)/man3/dspam_destroy.3
57	rm -f $(DESTDIR)$(mandir)/man3/dspam_detach.3
58	rm -f $(DESTDIR)$(mandir)/man3/dspam_getsource.3
59	rm -f $(DESTDIR)$(mandir)/man3/dspam_init.3
60	rm -f $(DESTDIR)$(mandir)/man3/dspam_process.3
61	cd $(DESTDIR)$(mandir)/man3/ && ln -s libdspam.3 dspam_addattribute.3
62	cd $(DESTDIR)$(mandir)/man3/ && ln -s libdspam.3 dspam_attach.3
63	cd $(DESTDIR)$(mandir)/man3/ && ln -s libdspam.3 dspam_clearattributes.3
64	cd $(DESTDIR)$(mandir)/man3/ && ln -s libdspam.3 dspam_create.3
65	cd $(DESTDIR)$(mandir)/man3/ && ln -s libdspam.3 dspam_destroy.3
66	cd $(DESTDIR)$(mandir)/man3/ && ln -s libdspam.3 dspam_detach.3
67	cd $(DESTDIR)$(mandir)/man3/ && ln -s libdspam.3 dspam_getsource.3
68	cd $(DESTDIR)$(mandir)/man3/ && ln -s libdspam.3 dspam_init.3
69	cd $(DESTDIR)$(mandir)/man3/ && ln -s libdspam.3 dspam_process.3
70
71uninstall-hook:
72	rm -f $(DESTDIR)$(mandir)/man3/dspam_addattribute.3
73	rm -f $(DESTDIR)$(mandir)/man3/dspam_attach.3
74	rm -f $(DESTDIR)$(mandir)/man3/dspam_clearattributes.3
75	rm -f $(DESTDIR)$(mandir)/man3/dspam_create.3
76	rm -f $(DESTDIR)$(mandir)/man3/dspam_destroy.3
77	rm -f $(DESTDIR)$(mandir)/man3/dspam_detach.3
78	rm -f $(DESTDIR)$(mandir)/man3/dspam_getsource.3
79	rm -f $(DESTDIR)$(mandir)/man3/dspam_init.3
80	rm -f $(DESTDIR)$(mandir)/man3/dspam_process.3
81
82ACLOCAL_AMFLAGS = -I m4
83