Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

53 lines (40 sloc) 2.697 kb
all: lib/libGRMustache6-iOS.a lib/libGRMustache6-MacOS.a include/GRMustache.h Reference
lib/libGRMustache6-iOS.a: build/iOS-device/Release-iphoneos/libGRMustache6-iOS.a build/iOS-simulator/Release-iphonesimulator/libGRMustache6-iOS.a
mkdir -p lib
lipo -create \
"build/iOS-simulator/Release-iphonesimulator/libGRMustache6-iOS.a" \
"build/iOS-device/Release-iphoneos/libGRMustache6-iOS.a" \
-output "lib/libGRMustache6-iOS.a"
lib/libGRMustache6-MacOS.a: build/MacOS/Release
mkdir -p lib
cp build/MacOS/Release/libGRMustache6-MacOS.a lib/libGRMustache6-MacOS.a
build/iOS-device/Release-iphoneos/libGRMustache6-iOS.a: build/iOS-device/Release-iphoneos
build/iOS-simulator/Release-iphonesimulator/libGRMustache6-iOS.a: build/iOS-simulator/Release-iphonesimulator
build/iOS-device/Release-iphoneos:
xcodebuild -project src/GRMustache.xcodeproj -target GRMustache6-iOS -configuration Release build SYMROOT=../build/iOS-device
build/iOS-simulator/Release-iphonesimulator:
xcodebuild -project src/GRMustache.xcodeproj -target GRMustache6-iOS -configuration Release -sdk iphonesimulator -arch "i386" build SYMROOT=../build/iOS-simulator
build/MacOS/Release:
xcodebuild -project src/GRMustache.xcodeproj -target GRMustache6-MacOS -configuration Release build SYMROOT=../build/MacOS
include/GRMustache.h: build/MacOS/Release/usr/local/include
cp -R build/MacOS/Release/usr/local/include .
build/MacOS/Release/usr/local/include: build/MacOS/Release
Reference: include/GRMustache.h
# Appledoc does not parse availability macros: create a temporary directory
# with "cleaned" GRMustache headers.
rm -Rf /tmp/GRMustache_include
cp -Rf include /tmp/GRMustache_include
for f in /tmp/GRMustache_include/*; do \
cat $${f} | sed "s/AVAILABLE_[A-Za-z0-9_]*//g" > $${f}.tmp; \
mv -f $${f}.tmp $${f}; \
done
# Generate documentation
mkdir Reference
appledoc --output Reference AppledocSettings.plist /tmp/GRMustache_include || true
# Cleanup
rm -Rf /tmp/GRMustache_include
clean:
rm -rf build
rm -rf include
rm -rf lib
rm -rf Reference
Jump to Line
Something went wrong with that request. Please try again.