File: Makefile.am

package info (click to toggle)
eel 1.0.2-8
  • links: PTS
  • area: main
  • in suites: woody
  • size: 4,840 kB
  • ctags: 4,752
  • sloc: ansic: 58,219; sh: 6,948; makefile: 650; yacc: 318; perl: 170; awk: 98
file content (81 lines) | stat: -rw-r--r-- 1,958 bytes parent folder | download
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
NULL=

@XML_I18N_MERGE_DESKTOP_RULE@

SUBDIRS =			\
	data \
	intl \
	eel \
	test \
	po \
	$(NULL)

EXTRA_DIST=					\
	COPYING.LIB				\
	HACKING					\
	MAINTAINERS				\
	eel.spec.in			\
	eelConf.sh.in			\
	eel-config.in			\
	xml-i18n-extract.in			\
	xml-i18n-merge.in			\
	xml-i18n-update.in			\
	$(NULL)

## [The following is shamelessly copied from gnome-vfs.]

## We create `eelConf.sh' here and not from configure because we
## want to get the paths expanded correctly.  Macros like srcdir are
## given the value NONE in configure if the user doesn't specify them
## (this is an autoconf feature, not a bug).

bin_SCRIPTS = $(top_builddir)/eel-config

confexecdir=$(libdir)
confexec_DATA =					\
	eelConf.sh				\
	$(NULL)

eelConf.sh: eelConf.sh.in Makefile
	sed -e 's?\@EEL_LIBDIR\@?$(EEL_LIBDIR)?g' \
	    -e 's?\@EEL_INCLUDEDIR\@?$(EEL_INCLUDEDIR)?g' \
	    -e 's?\@VERSION\@?$(VERSION)?g' \
	    -e 's?\@EEL_LIBS\@?$(EEL_LIBS)?g' \
	      < $(srcdir)/eelConf.sh.in > eelConf.tmp \
	  && mv eelConf.tmp eelConf.sh

eel-config: eel-config.in Makefile
	sed -e 's?\@LIBDIR\@?$(libdir)?g' \
	    -e 's?\@EEL_LIBDIR\@?$(EEL_LIBDIR)?g' \
	    -e 's?\@EEL_INCLUDEDIR\@?$(EEL_INCLUDEDIR)?g' \
	    -e 's?\@VERSION\@?$(VERSION)?g' \
	    -e 's?\@EEL_LIBS\@?$(EEL_LIBS)?g' \
	      < $(srcdir)/eel-config.in > eel-config.tmp \
	  && mv eel-config.tmp eel-config && \
		chmod 755 eel-config

##################################################################
#
# dist-hook
#
##################################################################

dist-hook: eel.spec
	cp eel.spec $(distdir)

# This is ridiculous, but automake apparently won't allow conditionals
# in EXTRA_DIST.

	mkdir -p $(distdir)/eazel-logos
	list='$(EAZEL_LOGOS_ICONS)'; \
	for i in $$list; \
	do \
		cp $$i $(distdir)/eazel-logos; \
	done

	mkdir -p $(distdir)/eazel-logos/throbber
	list='$(EAZEL_LOGOS_THROBBER)'; \
	for i in $$list; \
	do \
		cp $$i $(distdir)/eazel-logos/throbber; \
	done