-
Notifications
You must be signed in to change notification settings - Fork 10
/
dune
37 lines (34 loc) · 1.05 KB
/
dune
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
(data_only_dirs src)
(rule
(deps (source_tree src) configure.ac Makefile.am)
(targets libdash.a dlldash.so
builtins.h nodes.h syntax.h token.h token_vars.h
)
(action
(setenv CC "%{cc}"
(bash
"\
\n set -e\
\n if [ \"$(uname -s)\" = \"Darwin\" ]; then glibtoolize; else libtoolize; fi\
\n aclocal && autoheader && automake --add-missing && autoconf\
\n ./configure --prefix=\"$(pwd)\"\
\n %{make}\
\n %{make} install\
\n cp lib/libdash.a libdash.a\
\n cp lib/dlldash.so dlldash.so\
\n cp src/{builtins,nodes,syntax,token,token_vars}.h .\
\n"))))
(subdir src
(rule
(deps ../builtins.h ../nodes.h ../syntax.h ../token.h ../token_vars.h)
(targets builtins.h nodes.h syntax.h token.h token_vars.h)
(action
(progn
(copy ../builtins.h builtins.h)
(copy ../nodes.h nodes.h)
(copy ../syntax.h syntax.h)
(copy ../token.h token.h)
(copy ../token_vars.h token_vars.h)))))
(library
(name dash)
(foreign_archives dash))