File: Makefile.am

package info (click to toggle)
gnumeric 1.6.3-5.1%2Betch2
  • links: PTS
  • area: main
  • in suites: etch
  • size: 70,644 kB
  • ctags: 18,973
  • sloc: ansic: 204,271; xml: 47,128; sh: 8,917; makefile: 2,540; yacc: 1,137; perl: 179; python: 86
file content (60 lines) | stat: -rw-r--r-- 1,808 bytes parent folder | download | duplicates (11)
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
autoformat_categories = 3D Classical Colourful Financial General List
autoformats = \
	autoformat.3D.button.xml.in		\
	autoformat.3D.list.xml.in		\
	\
	autoformat.Classical.cool.xml.in	\
	autoformat.Classical.simple.xml.in	\
	autoformat.Classical.trendy.xml.in	\
	\
	autoformat.Colourful.banana.xml.in	\
	autoformat.Colourful.black.xml.in	\
	autoformat.Colourful.blue.xml.in	\
	autoformat.Colourful.orange.xml.in	\
	autoformat.Colourful.vanilla.xml.in	\
	\
	autoformat.Financial.basic.xml.in	\
	autoformat.Financial.desert.xml.in	\
	autoformat.Financial.ice.xml.in		\
	autoformat.Financial.modern.xml.in	\
	autoformat.Financial.purple.xml.in	\
	\
	autoformat.General.advanced.xml.in	\
	autoformat.General.basic.xml.in		\
	autoformat.General.empty.xml.in		\
	autoformat.General.table.xml.in		\
	\
	autoformat.List.basic.xml.in		\
	autoformat.List.green.xml.in		\
	autoformat.List.lila.xml.in		\
	autoformat.List.simple.xml.in

EXTRA_DIST = $(autoformats) $(autoformat_categories:=.category.in)

autoformatdir = $(gnumeric_datadir)/autoformat-templates

install-data-local:
	@echo "AutoFormats" ;						\
	for cat in $(autoformat_categories) ; do			\
		dir=$(DESTDIR)$(autoformatdir)/$$cat ;		\
		echo "-> $$cat" ;					\
		$(mkinstalldirs) $$dir ;				\
		sed -e 's/ _description *=/ description=/'		\
		    < $(srcdir)/$$cat.category.in			\
		    > $$dir/.category 	;				\
		for f in $(srcdir)/autoformat.$$cat.*.xml.in ; do	\
			dst=$$dir/`basename $$f | sed -e 's/\.in//'` ;	\
			echo "$$dst";					\
			sed 						\
				-e 's/ _author *=/ author=/'		\
				-e 's/ _name *=/ name=/' 		\
				-e 's/ _description *=/ description=/'	\
			    < $$f 					\
			    > $$dst ;					\
		done							\
	done

uninstall-local:
	for cat in $(autoformat_categories) ; do			\
		rm -rf $(DESTDIR)$(autoformatdir)/$$cat ;	\
	done