summaryrefslogtreecommitdiffstats
path: root/Makefile.am
blob: 9166b607ae66e3e87568f6b8e9f6b505216b8503 (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
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
KDE_OPTIONS = noautodist
SUBDIRS = bibletime pot docs .

EXTRA_DIST = \
BibleTime.tdevelop \
LICENSE \
ChangeLog \
bibletime.spec.in bibletime.spec \
README.in README \
INSTALL.in INSTALL\
bibletime.lsm.in bibletime.lsm \
configure.in.in configure.in \
bibletime.desktop.in bibletime.desktop \
Makefile.cvs autogen.sh \
bibletime.m4 sword.m4 clucene.m4

btadmindir = $(top_srcdir)/admin

# EXTRA_DIST += $(btadmindir)/ChangeLog
EXTRA_DIST += $(btadmindir)/compile
EXTRA_DIST += $(btadmindir)/config.guess
EXTRA_DIST += $(btadmindir)/config.pl
EXTRA_DIST += $(btadmindir)/config.sub
EXTRA_DIST += $(btadmindir)/configure.in.bot.end
EXTRA_DIST += $(btadmindir)/configure.in.min
EXTRA_DIST += $(btadmindir)/cvs-clean.pl
EXTRA_DIST += $(btadmindir)/install-sh
EXTRA_DIST += $(btadmindir)/ltmain.sh
EXTRA_DIST += $(btadmindir)/missing
EXTRA_DIST += $(btadmindir)/mkinstalldirs
EXTRA_DIST += $(btadmindir)/ylwrap
EXTRA_DIST += $(btadmindir)/Makefile.common
EXTRA_DIST += $(btadmindir)/acinclude.m4.in
EXTRA_DIST += $(btadmindir)/am_edit
EXTRA_DIST += $(btadmindir)/conf.change.pl
EXTRA_DIST += $(btadmindir)/debianrules
EXTRA_DIST += $(btadmindir)/depcomp
EXTRA_DIST += $(btadmindir)/detect-autoconf.sh
EXTRA_DIST += $(btadmindir)/libtool.m4.in
EXTRA_DIST += $(btadmindir)/nmcheck
EXTRA_DIST += $(btadmindir)/cvs.sh


# not a GNU package. You can remove this line, if 
# have all needed files, that a GNU package needs
AUTOMAKE_OPTIONS = 1.6 foreign dist-bzip2

$(top_srcdir)/acinclude.m4: $(top_srcdir)/admin/acinclude.m4.in $(top_srcdir)/admin/libtool.m4.in sword.m4 bibletime.m4 clucene.m4
	@cd $(top_srcdir) && cat admin/acinclude.m4.in admin/libtool.m4.in sword.m4 bibletime.m4 clucene.m4 > acinclude.m4
$(top_srcdir)/configure.in: $(top_srcdir)/configure.files $(shell test -f $(top_srcdir)/configure.files && cat $(top_srcdir)/configure.files)
	cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common configure.in
$(top_srcdir)/subdirs:
	cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common subdirs
$(top_srcdir)/configure.files:
	cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common configure.files

install-data-local:
	chmod -R 755 $(DESTDIR)$(kde_datadir)/bibletime
	$(mkinstalldirs) $(datadir)/applications
	$(INSTALL_DATA) $(top_builddir)/bibletime.desktop $(datadir)/applications/bibletime.desktop

uninstall-local:
	-rm -f $(datadir)/applications/bibletime.desktop

MAINTAINERCLEANFILES = configure.files subdirs 

dist-hook:	
	rm -f $(distdir)/bibletime-*.tar.gz $(distdir)/bibletime-*.tar.bz2
	rm -rf $(find $(distdir) -name tags -o -name TAGS -o -name \*.xcf -o -name \*.xcf.bz2)
#	rm -f $(distdir)/admin/Changelog $(distdir)/make-messages.sh \
#		$(distdir)/extractrc $(distdir)/preparetips \
#		$(distdir)/bibletime.doxygen $(distdir)/bibletime.kdevses \
#		$(distdir)/bibletime.start $(distdir)/configure.files \
#		$(distdir)/bibletime/pics/gen_am.sh
	rm -rf $(distdir)/autom4te.cache
	rm -rf $(distdir)/BibleTime.tdevelop.pcs
	rm -rf $(distdir)/docs/handbook/html/*.html
	rm -rf $(distdir)/docs/howto/html/*.html
#	rm -rf $(distdir)/BibleTime.tag
# $(distdir)/BibleTime.kdevses