Commit dbca5ca7 authored by Sam Hocevar's avatar Sam Hocevar

* modules/control/corba/Modules.am:

    + Play nicely with recent automake versions.
parent ab0c58c8
...@@ -8,10 +8,13 @@ nodist_SOURCES_corba = \ ...@@ -8,10 +8,13 @@ nodist_SOURCES_corba = \
MediaControl.h \ MediaControl.h \
$(NULL) $(NULL)
CORBAIDLFILE=MediaControl.idl EXTRA_DIST += $(CORBAIDLFILE)
BUILT_SOURCES += $(GENERATEDFILES) $(IMODULEFILE)
if ENABLE_CORBA if ENABLE_CORBA
CORBAIDLFILE = MediaControl.idl
corbaidldir = $(datadir)/idl corbaidldir = $(datadir)/idl
corbaidl_DATA = $(CORBAIDLFILE) corbaidl_DATA = $(CORBAIDLFILE)
...@@ -19,12 +22,10 @@ corbaidl_DATA = $(CORBAIDLFILE) ...@@ -19,12 +22,10 @@ corbaidl_DATA = $(CORBAIDLFILE)
orbittypelibdir = $(libdir)/advene orbittypelibdir = $(libdir)/advene
orbittypelib_DATA = MediaControl.so orbittypelib_DATA = MediaControl.so
EXTRA_DIST += $(CORBAIDLFILE)
ORBIT_IDL=$(shell pkg-config --variable=orbit_idl ORBit-2.0) ORBIT_IDL=$(shell pkg-config --variable=orbit_idl ORBit-2.0)
GENERATEDFILES = MediaControl-common.c MediaControl-skels.c MediaControl.h GENERATEDFILES = MediaControl-common.c MediaControl-skels.c MediaControl.h
BUILT_SOURCES += $(GENERATEDFILES) MediaControl-imodule.c IMODULEFILE = $(IMODULEFILE)
## MediaControl.so rules ## MediaControl.so rules
MediaControl.so: MediaControl-imodule.c MediaControl.so: MediaControl-imodule.c
...@@ -37,12 +38,12 @@ $(GENERATEDFILES): $(CORBAIDLFILE) ...@@ -37,12 +38,12 @@ $(GENERATEDFILES): $(CORBAIDLFILE)
## We have to invoke 2 times $(ORBIT_IDL), else the --imodule ## We have to invoke 2 times $(ORBIT_IDL), else the --imodule
## invocation builds MediaControl-common.c without some ## invocation builds MediaControl-common.c without some
## glue code that is needed. ## glue code that is needed.
MediaControl-imodule.c: $(CORBAIDLFILE) $(IMODULEFILE): $(CORBAIDLFILE)
$(ORBIT_IDL) --imodule $< $(ORBIT_IDL) --imodule $<
$(ORBIT_IDL) $< $(ORBIT_IDL) $<
clean: clean:
$(RM) -f $(GENERATEDFILES) $(RM) -f $(GENERATEDFILES)
$(RM) -f MediaControl-imodule.c $(RM) -f $(IMODULEFILE)
endif endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment