diff 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 diff
--- a/Makefile	Sat Jan 14 23:34:50 2023 +0700
+++ b/Makefile	Sun Jan 15 23:23:54 2023 +0700
@@ -1,53 +1,9 @@
-SOURCES := $(shell find src -name '*.nim')
-
 # compilation requirements
 examples/glslangValidator: thirdparty/bin/linux/glslangValidator
 	cp $< examples
 examples/glslangValidator.exe: thirdparty/bin/windows/glslangValidator.exe
 	cp $< examples
 
-# build hello_triangle
-build/debug/linux/hello_triangle: ${SOURCES} examples/hello_triangle.nim examples/glslangValidator
-	nim build_linux_debug -o:$@ examples/hello_triangle.nim
-build/release/linux/hello_triangle: ${SOURCES} examples/hello_triangle.nim examples/glslangValidator
-	nim build_linux_release -o:$@ examples/hello_triangle.nim
-build/debug/windows/hello_triangle.exe: ${SOURCES} examples/hello_triangle.nim examples/glslangValidator.exe
-	nim build_windows_debug -o:$@ examples/hello_triangle.nim
-build/release/windows/hello_triangle.exe: ${SOURCES} examples/hello_triangle.nim examples/glslangValidator.exe
-	nim build_windows_release -o:$@ examples/hello_triangle.nim
-
-build_all_linux_hello_triangle: build/debug/linux/hello_triangle build/release/linux/hello_triangle
-build_all_windows_hello_triangle: build/debug/windows/hello_triangle.exe build/release/windows/hello_triangle.exe
-build_all_hello_triangle: build_all_linux_hello_triangle build_all_windows_hello_triangle
-
-# build alotof_triangles
-build/debug/linux/alotof_triangles: ${SOURCES} examples/alotof_triangles.nim examples/glslangValidator
-	nim build_linux_debug -o:$@ examples/alotof_triangles.nim
-build/release/linux/alotof_triangles: ${SOURCES} examples/alotof_triangles.nim examples/glslangValidator
-	nim build_linux_release -o:$@ examples/alotof_triangles.nim
-build/debug/windows/alotof_triangles.exe: ${SOURCES} examples/alotof_triangles.nim examples/glslangValidator.exe
-	nim build_windows_debug -o:$@ examples/alotof_triangles.nim
-build/release/windows/alotof_triangles.exe: ${SOURCES} examples/alotof_triangles.nim examples/glslangValidator.exe
-	nim build_windows_release -o:$@ examples/alotof_triangles.nim
-
-build_all_linux_alotof_triangles: build/debug/linux/alotof_triangles build/release/linux/alotof_triangles
-build_all_windows_alotof_triangles: build/debug/windows/alotof_triangles.exe build/release/windows/alotof_triangles.exe
-build_all_alotof_triangles: build_all_linux_alotof_triangles build_all_windows_alotof_triangles
-
-# clean
-clean:
-	rm -rf build
-	rm -rf thirdparty
-
-# tests
-.PHONY: tests
-tests:
-	testament p tests/
-
-# publish
-publish:
-	rsync -rv build/ basx.dev:/var/www/public.basx.dev/zamikongine
-
 # download thirdparty-libraries
 
 thirdparty/bin/linux/glslangValidator: