Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
d7197997
Commit
d7197997
authored
2 years ago
by
Patrick Baudin
Browse files
Options
Downloads
Patches
Plain Diff
[Makefile] conditional definition for MacOS
parent
aa30d328
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
share/Makefile.common
+5
-3
5 additions, 3 deletions
share/Makefile.common
share/Makefile.linting
+6
-0
6 additions, 0 deletions
share/Makefile.linting
share/Makefile.testing
+7
-1
7 additions, 1 deletion
share/Makefile.testing
with
18 additions
and
4 deletions
share/Makefile.common
+
5
−
3
View file @
d7197997
...
@@ -147,13 +147,15 @@ eval last=\$${$$\#}; \
...
@@ -147,13 +147,15 @@ eval last=\$${$$\#}; \
mv $$new_temp $$last'
sed_inplace
mv $$new_temp $$last'
sed_inplace
SED
=
LC_ALL
=
C
sed
SED
=
LC_ALL
=
C
sed
RM
=
rm
-f
RM
=
rm
-f
ifeq
($(shell uname -s 2> /dev/null),Darwin)
TOUCH
=
touch
GIT
=
git
ifeq
($(PLATFORM),MacOS)
TAR
=
gtar
TAR
=
gtar
else
else
# Unix, Cygwin
TAR
=
tar
TAR
=
tar
endif
endif
TOUCH
=
touch
GIT
=
git
##################
##################
# Make commands #
# Make commands #
...
...
This diff is collapsed.
Click to expand it.
share/Makefile.linting
+
6
−
0
View file @
d7197997
...
@@ -66,7 +66,13 @@ MV ?= mv
...
@@ -66,7 +66,13 @@ MV ?= mv
RM
?=
rm
-f
RM
?=
rm
-f
RMDIR
?=
rm
-rf
RMDIR
?=
rm
-rf
TOUCH
?=
touch
TOUCH
?=
touch
ifeq
($(PLATFORM),MacOS)
XARGS
?=
xargs
else
# Unix, Cygwin
XARGS
?=
xargs
--no-run-if-empty
XARGS
?=
xargs
--no-run-if-empty
endif
############
############
...
...
This diff is collapsed.
Click to expand it.
share/Makefile.testing
+
7
−
1
View file @
d7197997
...
@@ -35,11 +35,17 @@ PTEST_DIRS?=$(PURGED_PTEST_DIRS)
...
@@ -35,11 +35,17 @@ PTEST_DIRS?=$(PURGED_PTEST_DIRS)
############
############
# Default values necessary for make -f <this-makefile>
# Default values necessary for make -f <this-makefile>
XARGS
?=
xargs
--no-run-if-empty
GREP
?=
grep
GREP
?=
grep
RM
?=
rm
-f
RM
?=
rm
-f
RMDIR
?=
rm
-rf
RMDIR
?=
rm
-rf
ifeq
($(PLATFORM),MacOS)
XARGS
?=
xargs
else
# Unix, Cygwin
XARGS
?=
xargs
--no-run-if-empty
endif
##########################################################################
##########################################################################
# Defines the related dune targets
# Defines the related dune targets
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment