make sure to use the srcdir to build the list

2004-02-24  JP Rosevear <jpr@ximian.com>

	* marshal.mk: make sure to use the srcdir to build the list

svn path=/trunk/; revision=24854
This commit is contained in:
JP Rosevear
2004-02-24 21:51:23 +00:00
committed by JP Rosevear
parent 3b0f3efe44
commit 853561bc90

View File

@ -1,7 +1,7 @@
%.h: %.list
( $(GLIB_GENMARSHAL) --prefix=$(subst -,_,$*) $< --header > $@.tmp \
( $(GLIB_GENMARSHAL) --prefix=$(subst -,_,$*) $(srcdir)/$< --header > $@.tmp \
&& mv $@.tmp $@ ) || ( rm -f $@.tmp && exit 1 )
%.c: %.list %.h
( (echo "#include \"$*.h\""; $(GLIB_GENMARSHAL) --prefix=$(subst -,_,$*) $*.list --body) > $@.tmp \
( (echo "#include \"$*.h\""; $(GLIB_GENMARSHAL) --prefix=$(subst -,_,$*) $(srcdir)/$*.list --body) > $@.tmp \
&& mv $@.tmp $@ ) || ( rm -f $@.tmp && exit 1 )