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
00452ff7
Commit
00452ff7
authored
2 years ago
by
Allan Blanchard
Browse files
Options
Downloads
Patches
Plain Diff
[build] share Makefile (un)installation rules
parent
7ba96e4a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+3
-16
3 additions, 16 deletions
Makefile
share/Makefile.installation
+53
-0
53 additions, 0 deletions
share/Makefile.installation
with
56 additions
and
16 deletions
Makefile
+
3
−
16
View file @
00452ff7
...
@@ -182,25 +182,12 @@ force-reconfigure:
...
@@ -182,25 +182,12 @@ force-reconfigure:
##############################################################################
##############################################################################
# INSTALL/UNINSTALL
# INSTALL/UNINSTALL
################################
################################
.PHONY
:
install uninstall
FRAMAC_INSTALLDIR
?=
""
FRAMAC_INSTALLDIR
?=
install
:
INSTALLDIR
:=
$(
FRAMAC_INSTALLDIR
)
ifeq
($(FRAMAC_INSTALLDIR),"")
dune
install
else
dune
install
--prefix
${
FRAMAC_INSTALLDIR
}
@
echo
'DO NOT FORGET TO EXPAND YOUR OCAMLPATH VARIABLE:'
@
echo
' export OCAMLPATH="
${
FRAMAC_INSTALLDIR
}
/lib:$$OCAMLPATH"'
endif
uninstall
:
include
share/Makefile.installation
ifeq
($(FRAMAC_INSTALLDIR),"")
dune uninstall
else
dune uninstall
--prefix
${
FRAMAC_INSTALLDIR
}
endif
###############################################################################
###############################################################################
# HEADER MANAGEMENT
# HEADER MANAGEMENT
...
...
This diff is collapsed.
Click to expand it.
share/Makefile.installation
0 → 100644
+
53
−
0
View file @
00452ff7
##########################################################################
# #
# This file is part of Frama-C. #
# #
# Copyright (C) 2007-2022 #
# CEA (Commissariat à l'énergie atomique et aux énergies #
# alternatives) #
# #
# you can redistribute it and/or modify it under the terms of the GNU #
# Lesser General Public License as published by the Free Software #
# Foundation, version 2.1. #
# #
# It is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU Lesser General Public License for more details. #
# #
# See the GNU Lesser General Public License version 2.1 #
# for more details (enclosed in the file licenses/LGPLv2.1). #
# #
##########################################################################
################
# INSTALLATION #
################
################################
## Default variables
# Set this variable to request a specific installation directory
# Default: Dune installs in the Opam directory
INSTALLDIR
?=
################################
## Install and uninstall
.PHONY
:
install uninstall
install
:
ifeq
($(INSTALLDIR),)
dune
install
else
dune
install
--prefix
${
INSTALLDIR
}
@
echo
'DO NOT FORGET TO EXPAND YOUR OCAMLPATH VARIABLE:'
@
echo
' export OCAMLPATH="
${
INSTALLDIR
}
/lib:$$OCAMLPATH"'
endif
uninstall
:
ifeq
($(INSTALLDIR),)
dune uninstall
else
dune uninstall
--prefix
${
INSTALLDIR
}
endif
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