-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmakefile.ls
More file actions
executable file
·65 lines (49 loc) · 1.78 KB
/
makefile.ls
File metadata and controls
executable file
·65 lines (49 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/env lsc
{ parse, add-plugin } = require('newmake')
parse ->
@add-plugin 'clang',(g, deps) ->
@compile-files( (-> "clang++ -c -Wall -Wsign-compare --std=c++11 #{it.orig-complete} -I. -o #{it.build-target}"), ".o", g, deps )
@add-plugin 'link', (files) ->
@reduce-files( ("clang++ $^ -o $@"), "linked", "x", files)
@collect "build", -> [
@dest "./bin/test", ->
@link -> [
@clang 'deps/*/**.cpp', 'deps/*/**.{hxx}'
@clang 'test/test{1,2}.cpp', '*.hxx'
]
@dest "./bin/test2", ->
@link -> [
@clang 'deps/*/**.cpp', 'deps/*/**.{hxx}'
@clang 'test/test3.cpp', '*.hxx'
]
@dest "./bin/test4", ->
@link -> [
@clang 'deps/*/**.cpp', 'deps/*/**.{hxx}'
@clang 'test/test{1,4}.cpp', '*.hxx'
]
@dest "./bin/test5", ->
@link -> [
@clang 'deps/*/**.cpp', 'deps/*/**.{hxx}'
@clang 'test/test5.cpp', '*.hxx'
]
@dest "./bin/test6", ->
@link -> [
@clang 'deps/*/**.cpp', 'deps/*/**.{hxx}'
@clang 'test/test6.cpp', '*.hxx'
]
]
@collect "all", ->
@command-seq -> [
@make "build"
@cmd "./test/test.sh"
]
@collect "clean", -> [
@remove-all-targets()
@cmd "cd ./test && rm *.tmp"
]
@collect "test", -> [
@cmd "cd ./test && rm *.tmp"
@cmd "./test/test.sh"
]
# @dest "./bin/frontend", ->
#