Makefile.am 1.6 KB
Newer Older
Miguel de Icaza's avatar
Miguel de Icaza committed
1 2 3
INCLUDES = 						\
	-DGNOMELOCALEDIR=\""$(datadir)/locale"\" 	\
	-I$(top_srcdir)					\
4
	$(GNUMERIC_CFLAGS)
Miguel de Icaza's avatar
Miguel de Icaza committed
5

Jody Goldberg's avatar
Jody Goldberg committed
6
if WITH_BONOBO
7
noinst_LIBRARIES = libGnumericIDL.a
Miguel de Icaza's avatar
Miguel de Icaza committed
8 9
endif

10
GNUMERIC_GENERATED = 		\
11 12 13 14 15 16 17 18 19 20
	GNOME_Gnumeric-common.c		\
	GNOME_Gnumeric-skels.c		\
	GNOME_Gnumeric-stubs.c		\
	GNOME_Gnumeric.h

GNUMERIC_GRAPH_GENERATED = 	\
	GNOME_Gnumeric_Graph-common.c	\
	GNOME_Gnumeric_Graph-skels.c		\
	GNOME_Gnumeric_Graph-stubs.c		\
	GNOME_Gnumeric_Graph.h	
Miguel de Icaza's avatar
Miguel de Icaza committed
21

22 23 24 25 26 27 28 29 30 31
if ENABLE_EVOLUTION
EVOLUTION_GENERATED =		\
	Evolution-Composer.h		\
	Evolution-Composer-common.c	\
	Evolution-Composer-skels.c	\
	Evolution-Composer-stubs.c
endif

libGnumericIDL_a_SOURCES =		\
	$(GNUMERIC_GENERATED)		\
32
	$(GNUMERIC_GRAPH_GENERATED)	\
33
	$(EVOLUTION_GENERATED)
Miguel de Icaza's avatar
Miguel de Icaza committed
34

35
stamp_Gnumeric_idl : $(srcdir)/GNOME_Gnumeric.idl 
Jody Goldberg's avatar
Jody Goldberg committed
36
	$(ORBIT_IDL) -I$(srcdir) $< && touch $@
Miguel de Icaza's avatar
Miguel de Icaza committed
37

38
$(GNUMERIC_GENERATED): stamp_Gnumeric_idl
39

40
stamp_Gnumeric_Graph_idl : $(srcdir)/GNOME_Gnumeric_Graph.idl
Jody Goldberg's avatar
Jody Goldberg committed
41
	$(ORBIT_IDL) -I$(srcdir) $< && touch $@
42

43
$(GNUMERIC_GRAPH_GENERATED): stamp_Gnumeric_Graph_idl
Miguel de Icaza's avatar
Miguel de Icaza committed
44

Jody Goldberg's avatar
Jody Goldberg committed
45
if ENABLE_EVOLUTION
46
stamp_evolution_idl :
Jody Goldberg's avatar
Jody Goldberg committed
47
	$(ORBIT_IDL) `$(GNOME_CONFIG) --datadir`/idl/Evolution-Composer.idl && touch $@
48

49
$(EVOLUTION_GENERATED) : stamp_evolution_idl
50

Jody Goldberg's avatar
Jody Goldberg committed
51
endif
52

53
idldir   = $(gnumeric_datadir)/idl
54
idl_DATA = GNOME_Gnumeric_Graph.idl GNOME_Gnumeric.idl 
Miguel de Icaza's avatar
Miguel de Icaza committed
55

56
EXTRA_DIST = $(idl_DATA)
Jody Goldberg's avatar
Jody Goldberg committed
57 58
# Do not use built sources BUILT_SOURCES
# it attempts to build the source even if it is not used.
59 60 61
CLEANFILES  = $(GNUMERIC_GENERATED)		\
	      $(GNUMERIC_GRAPH_GENERATED)	\
	      $(EVOLUTION_GENERATED)		\
62
		stamp_Gnumeric_idl stamp_Gnumeric_Graph_idl stamp_evolution_idl
63 64

dist-hook :
Jody Goldberg's avatar
Jody Goldberg committed
65
	cd $(distdir) && rm -f $(CLEANFILES)