File: Makefile.am

package info (click to toggle)
gnome-print 0.37-12
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 5,532 kB
  • ctags: 4,866
  • sloc: ansic: 52,559; sh: 7,775; makefile: 746; sed: 93; xml: 77
file content (72 lines) | stat: -rw-r--r-- 2,168 bytes parent folder | download | duplicates (3)
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
#bin_PROGRAMS = gnome-font-install

INSTALLER_DIR = installer

if LIBGPA
LIBGPA_DIR = libgpa data
else
LIBGPA_DIR = 
endif

SUBDIRS = intl po $(LIBGPA_DIR) libgnomeprint afms profiles fonts tests  $(INSTALLER_DIR)

INCLUDES = 			\
	$(GTK_CFLAGS)		\
	-I$(top_srcdir)/intl 	\
	-I$(top_builddir)/intl	\
	$(GNOME_INCLUDEDIR)	\
	@PRINT_INCLUDEDIR@	\
	-DPROFILEDIR=\""$(profilesdir)"\"

CPPFLAGS = @CPPFLAGS@  \
	-DGNOMELOCALEDIR=\""$(datadir)/locale"\" 	\
	-DBINDIR=\""$(bindir)"\"	\
	-DDATADIR=\""$(datadir)"\"

DEPS = $(top_builddir)/libgnomeprint/libgnomeprint.la
LDADDS = $(top_builddir)/libgnomeprint/libgnomeprint.la

# FIXME: I don't know how to express a shared library dependency
# to automake, but libgnomeprint.so needs to be linked with -llibart_lgpl
# so that if there are multiple versions of libart_lgpl on the system,
# the right version will be picked up.  Linking the final executable to
# libart_lgpl is not enough to ensure this.  Of course, not all OSs
# allow this, but I'm hoping that automake knows how to handle this...

tests:	testprint testtext

EXTRA_DIST =			\
	printConf.sh.in 	\
	gnome-print.spec.in	\
	gnome-print.spec	\
	run-gnome-font-install

confexecdir=$(libdir)
confexec_DATA = printConf.sh

CLEANFILES=printConf.sh

## We create printConf.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).

printConf.sh: printConf.sh.in Makefile
## Use sed and then mv to avoid problems if the user interrupts.
	sed -e 's?\@PRINT_LIBDIR\@?$(PRINT_LIBDIR)?g' \
	    -e 's?\@PRINT_INCLUDEDIR\@?$(PRINT_INCLUDEDIR)?g' \
	    -e 's?\@VERSION\@?$(VERSION)?g' \
	    -e 's?\@PRINT_LIBS\@?$(PRINT_LIBS)?g' \
	      < $(srcdir)/printConf.sh.in > printConf.tmp \
	  && mv printConf.tmp printConf.sh

#gnome_font_install_SOURCES = gnome-font-install.c
#gnome_font_install_LDADD =	\
#	$(GNOME_LIBDIR)		\
#	$(GNOME_LIBS)		\
#	$(GNOME_XML_LIB)	\
#	$(INTLLIBS)

#install-data-local: gnome-font-install
#	$(PERL) $(srcdir)/run-gnome-font-install ./gnome-font-install $(datadir) $(srcdir)
#