2005-01-31 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mcs / nunit20 / util / Makefile
index 1f7e6fe486b7ef1725e0fef8827823b2b4848c9a..ef42bfd3527b56735f12737c24b0a876328d0be2 100644 (file)
@@ -2,8 +2,6 @@ thisdir = nunit20/util
 SUBDIRS = 
 include ../../build/rules.make
 
-CLEAN_FILES = Transform.resources
-
 LIBRARY = NUnit.Util.dll
 LIBRARY_NAME = nunit.util.dll
 LIBRARY_SNK = $(topdir)/nunit.key
@@ -14,17 +12,21 @@ LOCAL_MCS_FLAGS= \
        -r:System.Xml.dll /d:MONO /d:StronglyNamedAssembly -debug
 NO_TEST = yo
 
-ifeq (net_2_0, $(PROFILE))
-NO_INSTALL = yes
-endif
+RESX_RES = Transform.resources
 
 EXTRA_DISTFILES = \
        nunit.util.dll.csproj   \
-       Transform.resx
+       $(RESX_RES:.resources=.resx)
 
-%.resources: %.resx
-       $(RESGEN) $<
+CLEAN_FILES = $(RESX_RES)
 
 include ../../build/library.make
 
-$(the_lib): Transform.resources
+$(the_lib): $(RESX_RES)
+
+$(RESX_RES): %.resources: %.resx
+       $(RESGEN) `echo $< | $(PLATFORM_CHANGE_SEPARATOR_CMD)`
+
+ifeq (net_2_0, $(PROFILE))
+NO_INSTALL = yes
+endif