File: Makefile.am

package info (click to toggle)
dspam 3.6.8-5
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 4,372 kB
  • ctags: 1,457
  • sloc: ansic: 24,738; sh: 9,859; perl: 2,378; makefile: 546; sql: 327
file content (66 lines) | stat: -rw-r--r-- 2,557 bytes parent folder | download | duplicates (3)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# $Id: Makefile.am,v 1.3 2006/05/14 15:37:30 jonz Exp $
#
# Makefile.am
# Jonathan A. Zdziarski <jonathan@nuclearelephant.com>
# Andrew W. Nosenko <awn@bcs.zp.ua>
#
# autoconf (GNU Autoconf) 2.59
# ltmain.sh (GNU libtool) 1.5.6
# automake (GNU automake) 1.9.2

includedir=@includedir@/dspam

SUBDIRS = .
DIST_SUBDIRS = .

man_MANS = dspam.1 dspam_stats.1 dspam_train.1 dspam_clean.1 dspam_dump.1 \
  dspam_merge.1 libdspam.3

EXTRA_DIST = dspam.1 dspam_stats.1 dspam_train.1 dspam_clean.1 dspam_dump.1 \
  dspam_merge.1 libdspam.3

MAINTAINERCLEANFILES = Makefile.in 

DEFS = @DEFS@ 

# Failing of chgrp is expected and normal case when someone do
#   make install DESTDIR=...
# from user other than root (from user not included in the `mail' group
# is exactly), and only after this and after checking what was installed
# changes ownership.
#
# Caveat: creating the $(dspam_home) in the install-exec-hook is not the
# right way, but for some (unknown to me) reason `installdirs-local'
# target have no chances to be executed under automake-1.7.3 (at least).
#
# Solaris' ln seems to have a problem with -sf and existing symlinks.
install-data-hook:
	rm -f $(DESTDIR)$(mandir)/man3/dspam_init.3
	rm -f $(DESTDIR)$(mandir)/man3/dspam_create.3
	rm -f $(DESTDIR)$(mandir)/man3/dspam_addattribute.3
	rm -f $(DESTDIR)$(mandir)/man3/dspam_attach.3
	rm -f $(DESTDIR)$(mandir)/man3/dspam_process.3
	rm -f $(DESTDIR)$(mandir)/man3/dspam_getsource.3
	rm -f $(DESTDIR)$(mandir)/man3/dspam_destroy.3
	rm -f $(DESTDIR)$(mandir)/man3/dspam_detach.3
	ln -s $(mandir)/man3/libdspam.3 $(DESTDIR)$(mandir)/man3/dspam_init.3
	ln -s $(mandir)/man3/libdspam.3 $(DESTDIR)$(mandir)/man3/dspam_create.3
	ln -s $(mandir)/man3/libdspam.3 $(DESTDIR)$(mandir)/man3/dspam_addattribute.3
	ln -s $(mandir)/man3/libdspam.3 $(DESTDIR)$(mandir)/man3/dspam_attach.3
	ln -s $(mandir)/man3/libdspam.3 $(DESTDIR)$(mandir)/man3/dspam_process.3
	ln -s $(mandir)/man3/libdspam.3 $(DESTDIR)$(mandir)/man3/dspam_getsource.3
	ln -s $(mandir)/man3/libdspam.3 $(DESTDIR)$(mandir)/man3/dspam_destroy.3
	ln -s $(mandir)/man3/libdspam.3 $(DESTDIR)$(mandir)/man3/dspam_detach.3

uninstall-hook:
	rm -f $(DESTDIR)$(mandir)/man3/dspam_init.3
	rm -f $(DESTDIR)$(mandir)/man3/dspam_create.3
	rm -f $(DESTDIR)$(mandir)/man3/dspam_addattribute.3
	rm -f $(DESTDIR)$(mandir)/man3/dspam_attach.3
	rm -f $(DESTDIR)$(mandir)/man3/dspam_process.3
	rm -f $(DESTDIR)$(mandir)/man3/dspam_getsource.3
	rm -f $(DESTDIR)$(mandir)/man3/dspam_destroy.3
	rm -f $(DESTDIR)$(mandir)/man3/dspam_detach.3

ACLOCAL_AMFLAGS = -I m4