view Makefile @ 33:94c38e4b5782

did: refactoring, move more from make to nimscript
author Sam <sam@basx.dev>
date Sun, 15 Jan 2023 23:23:54 +0700
parents da922b506570
children
line wrap: on
line source

# compilation requirements
examples/glslangValidator: thirdparty/bin/linux/glslangValidator
	cp $< examples
examples/glslangValidator.exe: thirdparty/bin/windows/glslangValidator.exe
	cp $< examples

# download thirdparty-libraries

thirdparty/bin/linux/glslangValidator:
	mkdir -p $$( dirname $@ )
	cd $$( dirname $@ ) && wget https://github.com/KhronosGroup/glslang/releases/download/master-tot/glslang-master-linux-Release.zip
	cd $$( dirname $@ ) && unzip *.zip
	cd $$( dirname $@ ) && mv bin/* .
	cd $$( dirname $@ ) && rm -rf *.zip bin lib include
thirdparty/bin/windows/glslangValidator.exe:
	mkdir -p $$( dirname $@ )
	cd $$( dirname $@ ) && wget https://github.com/KhronosGroup/glslang/releases/download/master-tot/glslang-master-windows-x64-Release.zip
	cd $$( dirname $@ ) && unzip *.zip
	cd $$( dirname $@ ) && mv bin/* .
	cd $$( dirname $@ ) && rm -rf *.zip bin lib include