--- yoda/event/physics/S4/Makefile.am 2004/10/17 12:28:29 1.1 +++ yoda/event/physics/S4/Makefile.am 2004/12/03 22:04:33 1.2 @@ -2,11 +2,20 @@ INCLUDES = -I@top_srcdir@ -I@top_srcdir@/event @ROOT_INCLUDES@ LDFLAGS = @ROOT_LDFLAGS@ -noinst_LTLIBRARIES = libs4event.la -libs4event_la_SOURCES = S4Event.cpp S4Event.h \ - S4EventDict.cpp S4EventDict.h LinkDef.h +YODA_HEADER_FILES = S4Event.h +yodaincdir = $(includedir)/yoda/event/physics/S4 +yodainc_HEADERS = ${YODA_HEADER_FILES} -BUILT_SOURCES = S4EventDict.cpp S4EventDict.h +YODA_SOURCES = S4Event.cpp -S4EventDict.cpp: S4Event.h LinkDef.h +BUILT_SOURCES = S4EventDict.cpp S4EventDict.h + +noinst_LTLIBRARIES = libs4event.la + +libs4event_la_SOURCES = ${YODA_HEADER_FILES} \ + ${YODA_SOURCES} \ + ${BUILT_SOURCES} \ + LinkDef.h + +S4EventDict.cpp: ${YODA_HEADER_FILES} LinkDef.h @ROOTCINT@ -f $@ -c ${INCLUDES} $^