all:
	cd SKMService-prefpane && xcodebuild -project SKMService-prefpane.xcodeproj -configuration Debug
	if [ "$(TARGET_MOD)" == "CIRRUS" ] ; \
	then \
	  sed -i -e "s|ICONLABEL|Cirrus|" SKMService-prefpane/build/Debug/SKM.prefpane/Contents/Info.plist ;\
          sed -i -e "s|SOFTWAREBRAND|Cirrus|" SKMService-prefpane/build/Debug/SKM.prefpane/Contents/Info.plist ;\
	elif [ "$(TARGET_MOD)" == "ClareVision" ] ;\
        then \
	   sed -i -e "s|ICONLABEL|ClareVision|" SKMService-prefpane/build/Debug/SKM.prefpane/Contents/Info.plist ;\
           sed -i -e "s|SOFTWAREBRAND|ClareVision|" SKMService-prefpane/build/Debug/SKM.prefpane/Contents/Info.plist ;\
           sed -i -e "s|SKMService_prefpanePref.tiff|SKMService_prefpanePref_CV.tiff|" SKMService-prefpane/build/Debug/SKM.prefpane/Contents/Info.plist ;\
        else \
           sed -i -e "s|ICONLABEL|Stratus|" SKMService-prefpane/build/Debug/SKM.prefpane/Contents/Info.plist ;\
           sed -i -e "s|SOFTWAREBRAND|Stratus|" SKMService-prefpane/build/Debug/SKM.prefpane/Contents/Info.plist ;\
	fi
	rm -f SKMService-prefpane/build/Debug/SKM.prefpane/Contents/Info.plist-e
	cp -R SKMService-prefpane/build/Debug/SKM.prefpane ../etc
