Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
menhir
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
12
Issues
12
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
POTTIER Francois
menhir
Commits
2faca505
Commit
2faca505
authored
May 28, 2018
by
POTTIER Francois
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow building the demos to 'succeed' even if dune is absent.
parent
847850c0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
16 deletions
+22
-16
GNUmakefile
GNUmakefile
+1
-1
demos/Makefile
demos/Makefile
+7
-9
demos/calc-dune/Makefile
demos/calc-dune/Makefile
+7
-3
demos/calc-incremental-dune/Makefile
demos/calc-incremental-dune/Makefile
+7
-3
No files found.
GNUmakefile
View file @
2faca505
...
...
@@ -128,7 +128,7 @@ package: clean
@
grep
-v
my_warnings
src/_tags
>
$(PACKAGE)/src/_tags
# Clean up the demos, including those that are not built by default
# because they require dune.
@
$(MAKE)
-C
$(PACKAGE)/demos
real
clean
@
$(MAKE)
-C
$(PACKAGE)/demos
clean
# Set the version number into the files that mention it. These
# include version.ml, StaticVersion.{ml,mli}, version.tex, META.
@
echo
"-> Setting version to $(DATE)."
...
...
demos/Makefile
View file @
2faca505
# The following demos require menhirLib:
# calc-incremental
# calc-inspection
# The following demos require menhirSdk:
# generate-printers
# The following demos require dune (a.k.a. jbuilder)
# and assume that Menhir is already installed:
# calc-dune
# calc-incremental-dune
# The demos whose name ends in -dune require dune (a.k.a. jbuilder)
# and assume that Menhir is installed.
DEMOS
:=
\
calc
\
...
...
@@ -15,8 +15,10 @@ DEMOS := \
calc-incremental
\
calc-inspection
\
generate-printers
\
calc-dune
\
calc-incremental-dune
\
.PHONY
:
all clean
realclean
.PHONY
:
all clean
all clean
::
@
for
i
in
$(DEMOS)
;
do
\
...
...
@@ -25,7 +27,3 @@ all clean::
clean
::
/bin/rm
-f
*
~ .
*
~
realclean
:
clean
make
-C
calc-dune clean
make
-C
calc-incremental-dune clean
demos/calc-dune/Makefile
View file @
2faca505
...
...
@@ -4,11 +4,15 @@ DUNE := jbuilder
EXECUTABLE
:=
calc.exe
all
:
$(DUNE)
build
$(EXECUTABLE)
@
if
command
-v
$(DUNE)
>
/dev/null
;
then
\
$(DUNE)
build
$(EXECUTABLE)
;
\
else
\
echo
"Error:
$(DUNE)
is required."
;
\
fi
clean
:
$(DUNE)
clean
rm
-f
*
~
.
*
~
rm
-rf
`
cat
.gitignore
`
rm
-f
*
~
test
:
all
@
echo
"The following command should print 42:"
...
...
demos/calc-incremental-dune/Makefile
View file @
2faca505
...
...
@@ -4,11 +4,15 @@ DUNE := jbuilder
EXECUTABLE
:=
calc.exe
all
:
$(DUNE)
build
$(EXECUTABLE)
@
if
command
-v
$(DUNE)
>
/dev/null
;
then
\
$(DUNE)
build
$(EXECUTABLE)
;
\
else
\
echo
"Error:
$(DUNE)
is required."
;
\
fi
clean
:
$(DUNE)
clean
rm
-f
*
~
.
*
~
rm
-rf
`
cat
.gitignore
`
rm
-f
*
~
test
:
all
@
echo
"The following command should print 42:"
...
...
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