summaryrefslogtreecommitdiff
blob: 552e57adffa847d97f7360ff21245717dbb76ffb (plain)
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
Index: Makefile.am
===================================================================
RCS file: /cvs/gnome/gnumeric/plugins/corba/Makefile.am,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- Makefile.am	24 Sep 2004 01:33:18 -0000	1.5
+++ Makefile.am	22 Feb 2005 17:07:22 -0000	1.6
@@ -7,23 +7,26 @@
 xmldir = $(gnumeric_plugin_corbadir)
 gnumeric_plugin_corba_LTLIBRARIES = corba.la
 corba_la_LDFLAGS = -module $(GNUMERIC_PLUGIN_LDFLAGS)
-corba_la_SOURCES = $(GNUMERIC_GENERATED)	\
+corba_la_SOURCES =				\
 	corba-application.c 			\
 	corba-workbook.c 			\
 	corba-workbook.h 			\
 	corba-sheet.c 				\
 	corba-sheet.h
 
-GNUMERIC_GENERATED = 		\
+nodist_corba_la_SOURCES =		\
 	GNOME_Gnumeric-common.c		\
 	GNOME_Gnumeric-skels.c		\
 	GNOME_Gnumeric-stubs.c		\
 	GNOME_Gnumeric.h
 
-stamp_Gnumeric_idl : $(srcdir)/GNOME_Gnumeric.idl 
+# A hint is needed to build the header first:
+BUILT_SOURCES = GNOME_Gnumeric.h
+
+stamp_Gnumeric_idl: $(srcdir)/GNOME_Gnumeric.idl 
 	$(ORBIT_IDL) -I$(srcdir) $< && touch $@
 
-$(GNUMERIC_GENERATED): stamp_Gnumeric_idl
+$(nodist_corba_la_SOURCES): stamp_Gnumeric_idl
 
 idldir   = $(gnumeric_datadir)/idl
 idl_DATA = GNOME_Gnumeric.idl 
@@ -33,11 +36,5 @@
 
 @INTLTOOL_XML_RULE@
 
-# Do not use built sources BUILT_SOURCES
-# it attempts to build the source even if it is not used.
-DISTCLEANFILES	= $(GNUMERIC_GENERATED) stamp_Gnumeric_idl $(xml_DATA)
+CLEANFILES	= $(nodist_corba_la_SOURCES) stamp_Gnumeric_idl $(xml_DATA)
 EXTRA_DIST	= $(idl_DATA) $(xml_in_files)
-
-dist-hook :
-	cd $(distdir) && rm -f $(DISTCLEANFILES)
-