File: Makefile.am

package info (click to toggle)
bbdb3 3.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,560 kB
  • ctags: 560
  • sloc: lisp: 8,402; sh: 547; makefile: 89
file content (91 lines) | stat: -rw-r--r-- 3,386 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# lisp/Makefile.am for BBDB
#
# Copyright (C) 2010-2014 Roland Winkler <winkler@gnu.org>

# Author: Roland Winkler <winkler@gnu.org>
#  	  Christian Egli <christian.egli@sbs.ch>
# 
# This file is part of the Insidious Big Brother Database (aka BBDB),
# 
# BBDB is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# 
# BBDB is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with BBDB.  If not, see <http://www.gnu.org/licenses/>.

dist_lisp_LISP = 				\
	bbdb.el					\
	bbdb-anniv.el				\
	bbdb-com.el				\
	bbdb-gnus.el				\
	bbdb-ispell.el				\
	bbdb-message.el				\
	bbdb-mhe.el				\
	bbdb-migrate.el				\
	bbdb-mua.el				\
	bbdb-pgp.el				\
	bbdb-print.el				\
	bbdb-rmail.el				\
	bbdb-sc.el				\
	bbdb-snarf.el				\
	bbdb-site.el

if VM
dist_lisp_LISP += bbdb-vm.el
# We use the Automake variable AM_ELCFLAGS to include the VM lisp directory
# in the Emacs load path when compiling BBDB with VM support.
endif

lisp_DATA = bbdb-loaddefs.el

MOSTLYCLEANFILES = bbdb-loaddefs.el
CLEANFILES = bbdb-site.el bbdb-pkg.el

# The Emacs function define-package is not autoloaded.
# So we assume we need not compile bbdb-pkg.el (which otherwise
# results in a compiler warning that define-package is not defined).
EXTRA_DIST = bbdb-site.el.in bbdb-pkg.el makefile-temp

bbdb-loaddefs.el: $(dist_lisp_LISP)
#	2011-12-11: We switched from bbdb-autoloads.el to bbdb-loaddefs.el.
#	If the user still has an old bbdb-autoloads.el in the BBDB
#	lisp directory (and keeps loading it from the emacs init file),
#	we might get strange error messages that things fail.
#	So we throw an error if these old files are found.
	@if test -f bbdb-autoloads.el -o -f bbdb-autoloads.elc; then \
	  (echo "*** ERROR: Old file(s) \`bbdb-autoloads.el(c)' found ***" ; \
	  echo "*** Delete these files; do not load them from your init file ***") && \
	  false ; \
	fi
	@echo "(provide 'bbdb-loaddefs)" > $@;
	@echo "(if (and load-file-name (file-name-directory load-file-name))" >> $@;
	@echo "    (add-to-list 'load-path (file-name-directory load-file-name)))" >> $@;
	@echo "" >> $@;
#	Generated autoload-file must have an absolute path,
#	$srcdir can be relative.
	$(EMACS) -batch -l autoload \
		--eval '(setq generated-autoload-file "'$(abs_builddir)/$@'")' \
		--eval '(setq make-backup-files nil)' \
		-f batch-update-autoloads $(srcdir)

# Generate bbdb-site.el here as pkgdatadir is only known at "make" time.
# We protect the autoconf variables in the sed regular expressions
# so as not to substitute them when processing Makefile.am.
# Warning: the sed expressions will break if PACKAGE_VERSION, PACKAGE_DATE,
# or pkgdatadir contain '='.

bbdb-site.el: $(top_builddir)/config.status bbdb-site.el.in
	sed -e "s=[@]pkgdatadir[@]=$(pkgdatadir)=" \
	    -e "s=[@]PACKAGE_VERSION[@]=$(PACKAGE_VERSION)=" \
	    -e "s=[@]PACKAGE_DATE[@]=$(PACKAGE_DATE)=" \
	    < $@.in > $@

# Be sure bbdb-site.el exists early for "(require 'bbdb-site)"
BUILT_SOURCES = bbdb-site.el