Makefile命令让我缺少分隔符。停止。错误

时间:2016-03-31 12:15:15

标签: macos makefile recipe

我正在尝试使用OSX(MacOS)中的Make命令终端编译以下代码。它给了我*** missing separator. Stop.**错误。

代码:

`XBUILD=/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild
 PROJECT_ROOT=./InfColorPicker
 PROJECT=$(PROJECT_ROOT)/InfColorPicker.xcodeproj
 TARGET=InfColorPicker
 all: libInfColorPickerSDK.a
 libInfColorPicker-i386.a:
$(XBUILD) -project $(PROJECT) -target $(TARGET) -sdk iphonesimulator -configuration Release clean build
-mv $(PROJECT_ROOT)/build/Release-iphonesimulator/lib$(TARGET).a $@
libInfColorPicker-armv7.a:
$(XBUILD) -project $(PROJECT) -target $(TARGET) -sdk iphoneos -arch armv7 -configuration Release clean build
-mv $(PROJECT_ROOT)/build/Release-iphoneos/lib$(TARGET).a $@
libInfColorPickerSDK.a: libInfColorPicker-i386.a libInfColorPicker-armv7.a
xcrun -sdk iphoneos lipo -create -output $@ $^

清洁:  -rm -f .a .dll`

我尝试过在每一行都提供TABS。它不起作用。请帮忙

0 个答案:

没有答案