rocq_makefile

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

rocq_makefile gets info from `rocq makefile` for installation.

This is needed to install Rocq outputs to the opam switch, which requires converting logical paths to physical paths, and finding the opam switch.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DestinationOf

func DestinationOf(makeVars map[string]string, target string) string

DestinationOf determines the installation path for a compiled file. Returns the directory for the file `target`.

It uses "rocq makefile -destination-of" to identify where the target file (typically a .vo file) should be installed, the same as the rocq makefile `install` rule.

func GetMakefileVars

func GetMakefileVars(makefilePath string, vars []string) map[string]string

GetMakefileVars extracts variable values from a Makefile.

It does this by running make (using a temporary Makefile to provide a rule to just print values).

func GetRocqVars

func GetRocqVars() (map[string]string, error)

GetRocqVars extracts the COQLIBS and COQLIBINSTALL variables that rocq makefile generates.

It uses _RocqProject (falling back to _CoqProject) for the COQLIBS configuration.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL