Skip to content
Snippets Groups Projects
Commit e6cd8d39 authored by Allan Blanchard's avatar Allan Blanchard
Browse files

[man] restore man installation

parent e3bf18b0
No related branches found
No related tags found
No related merge requests found
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(alias (name default) (deps (alias install))) (alias (name default) (deps (alias install)))
(dirs src tools tests headers share bin) (dirs bin headers man share src tools tests)
(executable (executable
(name configurator) (name configurator)
......
man/dune 0 → 100644
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ;;
;; 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). ;;
;; ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(rule
(target frama-c.1.generated)
(deps frama-c.1.md)
(enabled_if %{bin-available:pandoc})
(action (run pandoc -s -t man %{deps} -o %{target}))
)
(rule
(alias check-man)
(deps frama-c.1 frama-c.1.generated)
(action (diff frama-c.1 frama-c.1.generated))
)
(install
(package frama-c)
(section man)
(files frama-c.1)
)
...@@ -92,7 +92,7 @@ build: [ ...@@ -92,7 +92,7 @@ build: [
] ]
install: [ install: [
[make "INSTALLDIR=%{prefix}%" "install"] [make "INSTALLDIR=%{prefix}%" "MANDIR=%{mandir}%" "install"]
[make "PREFIX=%{prefix}%" "-C" "doc" "install"] {with-doc} [make "PREFIX=%{prefix}%" "-C" "doc" "install"] {with-doc}
] ]
......
...@@ -31,6 +31,17 @@ ...@@ -31,6 +31,17 @@
# Default: Dune installs in the Opam directory # Default: Dune installs in the Opam directory
INSTALLDIR?= INSTALLDIR?=
# Set this variable to request a specific man installation directory
# Default: the manuals are installed in the installation directory transmitted
# to Dune (so either in Opam or in INSTALLDIR)
MANDIR?=
ifeq (${MANDIR},)
MANDIR_OPT=
else
MANDIR_OPT=--mandir ${MANDIR}
endif
################################ ################################
## Install and uninstall ## Install and uninstall
...@@ -38,18 +49,18 @@ INSTALLDIR?= ...@@ -38,18 +49,18 @@ INSTALLDIR?=
install: install:
ifeq ($(INSTALLDIR),) ifeq ($(INSTALLDIR),)
dune install dune install ${MANDIR_OPT}
else else
@echo "Installing to prefix: ${INSTALLDIR}" @echo "Installing to prefix: ${INSTALLDIR}"
dune install --prefix ${INSTALLDIR} dune install --prefix ${INSTALLDIR} ${MANDIR_OPT}
@echo 'DO NOT FORGET TO EXPAND YOUR OCAMLPATH VARIABLE:' @echo 'DO NOT FORGET TO EXPAND YOUR OCAMLPATH VARIABLE:'
@echo ' export OCAMLPATH="${INSTALLDIR}/lib:$$OCAMLPATH"' @echo ' export OCAMLPATH="${INSTALLDIR}/lib:$$OCAMLPATH"'
endif endif
uninstall: uninstall:
ifeq ($(INSTALLDIR),) ifeq ($(INSTALLDIR),)
dune uninstall dune uninstall ${MANDIR_OPT}
else else
@echo "Uninstalling from prefix: ${INSTALLDIR}" @echo "Uninstalling from prefix: ${INSTALLDIR}"
dune uninstall --prefix ${INSTALLDIR} dune uninstall --prefix ${INSTALLDIR} ${MANDIR_OPT}
endif endif
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ;;
;; This file is part of the Frama-C's E-ACSL plug-in. ;;
;; ;;
;; Copyright (C) 2012-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). ;;
;; ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(install
(package frama-c-e-acsl)
(section man)
(files e-acsl-gcc.sh.1)
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment