1## Process this file with automake to produce Makefile.in
2
3AUTOMAKE_OPTIONS = 1.4 no-dependencies
4
5if BUILD_TKNAMAZU
6BUILT_TKNAMAZU = tknamazu
7DIST_TKNAMAZU =
8else
9BUILT_TKNAMAZU =
10DIST_TKNAMAZU = tknamazu
11endif
12
13SUBDIRS = m4 conf doc etc filter po lib nmz pl src lisp scripts man \
14	  tests pltests template contrib $(BUILT_TKNAMAZU)
15
16DIST_SUBDIRS = m4 conf doc etc filter po lib nmz pl src lisp scripts man \
17	  tests pltests template contrib $(BUILT_TKNAMAZU)
18
19
20bin_SCRIPTS = nmz-config
21
22etcdir     = $(pkgdatadir)/etc
23etc_DATA   = AUTHORS ChangeLog ChangeLog.1 CREDITS COPYING INSTALL \
24	     INSTALL-ja README README-es README-ja NEWS THANKS TODO \
25	     HACKING HACKING-ja
26
27EXTRA_DIST = $(etc_DATA) maintMakefile namazu.spec namazu.spec.in \
28	     config.rpath mkinstalldirs
29
30
31EXTRA_DIRS = $(DIST_TKNAMAZU) File-MMagic
32
33install-data-local:
34	$(mkinstalldirs) $(DESTDIR)$(localstatedir)/$(PACKAGE)/index
35
36dist-hook:
37	for subdir in $(EXTRA_DIRS); do \
38	    cp -rp $$subdir $(distdir)/$$subdir; \
39	    rm -f $(distdir)/$$subdir/*~; \
40	    rm -f $(distdir)/$$subdir/*.{bak,orig}; \
41	    rm -f $(distdir)/$$subdir/.cvsignore; \
42	    rm -f $(distdir)/$$subdir/autogen.sh; \
43	    rm -rf $(distdir)/$$subdir/autom4te.cache; \
44	    rm -rf $(distdir)/$$subdir/CVS; \
45	    rm -rf $(distdir)/$$subdir/*/CVS; \
46	done
47
48##Bug in automake: Can't use `if MAINTAINER_MODE'
49@MAINTAINER_MODE_TRUE@include $(srcdir)/maintMakefile
50
51ACLOCAL_AMFLAGS = -I m4
52