Makefile.am.tpl 902 Bytes
Newer Older
Naba Kumar's avatar
Naba Kumar committed
1 2 3 4
[+ autogen5 template +]
## Process this file with automake to produce Makefile.in
## Created by Anjuta

5
SUBDIRS = src [+IF (=(get "HaveI18n") "1") +]po[+ENDIF+]
Naba Kumar's avatar
Naba Kumar committed
6

7
[+NameCLower+]docdir = ${prefix}/doc/[+NameHLower+]
Naba Kumar's avatar
Naba Kumar committed
8
[+NameCLower+]doc_DATA = \
Naba Kumar's avatar
Naba Kumar committed
9 10 11 12 13
	README\
	COPYING\
	AUTHORS\
	ChangeLog\
	INSTALL\
14
	NEWS
Naba Kumar's avatar
Naba Kumar committed
15

16 17 18 19 20 21 22 23 24 25 26 27 28
[+IF (=(get "HaveI18n") "1") +]
INTLTOOL_FILES = intltool-extract.in \
	intltool-merge.in \
	intltool-update.in

EXTRA_DIST = $([+NameCLower+]doc_DATA) \
	$(INTLTOOL_FILES)

DISTCLEANFILES = intltool-extract \
	intltool-merge \
	intltool-update \
	po/.intltool-merge-cache
[+ELSE+]
Naba Kumar's avatar
Naba Kumar committed
29
EXTRA_DIST = $([+NameCLower+]doc_DATA)
30
[+ENDIF+]
Naba Kumar's avatar
Naba Kumar committed
31 32 33 34 35 36 37 38 39

# Copy all the spec files. Of cource, only one is actually used.
dist-hook:
	for specfile in *.spec; do \
		if test -f $$specfile; then \
			cp -p $$specfile $(distdir); \
		fi \
	done

40 41 42
# Remove doc directory on uninstall
uninstall-local:
	-rm -r $([+NameCLower+]docdir)