Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jonas Kastberg
iris
Commits
82a63e76
Commit
82a63e76
authored
Nov 16, 2016
by
Ralf Jung
Browse files
use awk instead of sed for makefile patching, for better Mac OS compatibility
parent
7e6a432f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
82a63e76
...
@@ -18,7 +18,7 @@ clean: Makefile.coq
...
@@ -18,7 +18,7 @@ clean: Makefile.coq
Makefile.coq
:
_CoqProject Makefile
Makefile.coq
:
_CoqProject Makefile
coq_makefile
$(COQ_MAKEFILE_FLAGS)
-f
_CoqProject |
sed
's/$
$(COQCHK)
$
$(COQCHKFLAGS)
$
$(COQLIBS)
/$
$(COQCHK)
$
$(COQCHKFLAGS)
$
$(
subst
-Q,-R,$
$(COQLIBS)
)
/'
\
coq_makefile
$(COQ_MAKEFILE_FLAGS)
-f
_CoqProject |
sed
's/$
$(COQCHK)
$
$(COQCHKFLAGS)
$
$(COQLIBS)
/$
$(COQCHK)
$
$(COQCHKFLAGS)
$
$(
subst
-Q,-R,$
$(COQLIBS)
)
/'
\
|
sed
'/^install:$$/
a \
\tif [ -d "$
$(DSTROOT)
"$
$(COQLIBINSTALL)
/iris/ ]; then find "$
$(DSTROOT)
"$
$(COQLIBINSTALL)
/iris/ -name "*.vo" -print -delete; fi'
>
Makefile.coq
|
awk
'/^install:$$/
{print;print "
\tif [ -d
\
"$
$(DSTROOT)
\
"$
$(COQLIBINSTALL)
/iris/ ]; then find
\
"$
$(DSTROOT)
\
"$
$(COQLIBINSTALL)
/iris/ -name
\
"*.vo
\
" -print -delete; fi
";next}1
'
>
Makefile.coq
_CoqProject
:
;
_CoqProject
:
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment