Skip to content

Commit c4c1ac0

Browse files
committed
improved org
1 parent c2541df commit c4c1ac0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+145
-42
lines changed

Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# -*- Makefile -*-
2+
3+
# --------------------------------------------------------------------
4+
include Makefile.common

Makefile.common

+99
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
# -*- Makefile -*-
2+
3+
######################################################################
4+
# USAGE: #
5+
# The rules this-config::, this-build::, this-distclean::, #
6+
# pre-makefile::, this-clean:: and __always__:: may be extended #
7+
# Additionally, the following variables may be customized: #
8+
SUBDIRS?=
9+
COQBIN?=$(dir $(shell which coqtop))
10+
COQMAKEFILE?=$(COQBIN)coq_makefile
11+
COQDEP?=$(COQBIN)coqdep
12+
COQPROJECT?=_CoqProject
13+
COQMAKEOPTIONS?=
14+
COQMAKEFILEOPTIONS?=
15+
V?=
16+
VERBOSE?=V
17+
######################################################################
18+
19+
# local context: -----------------------------------------------------
20+
.PHONY: all config build clean distclean __always__
21+
.SUFFIXES:
22+
23+
H:= $(if $(VERBOSE),,@) # not used yet
24+
TOP = $(dir $(lastword $(MAKEFILE_LIST)))
25+
COQMAKE = $(MAKE) -f Makefile.coq $(COQMAKEOPTIONS)
26+
BRANCH_coq:= $(shell $(COQBIN)coqtop -v | head -1 | grep -E '(trunk|master)' \
27+
| wc -l | sed 's/ *//g')
28+
29+
# coq version:
30+
ifneq "$(BRANCH_coq)" "0"
31+
COQVVV:= dev
32+
else
33+
COQVVV:=$(shell $(COQBIN)coqtop --print-version | cut -d" " -f1)
34+
endif
35+
36+
COQV:= $(shell echo $(COQVVV) | cut -d"." -f1)
37+
COQVV:= $(shell echo $(COQVVV) | cut -d"." -f1-2)
38+
39+
# all: ---------------------------------------------------------------
40+
all: config build
41+
42+
# Makefile.coq: ------------------------------------------------------
43+
.PHONY: pre-makefile
44+
45+
Makefile.coq: pre-makefile $(COQPROJECT) Makefile
46+
$(COQMAKEFILE) $(COQMAKEFILEOPTIONS) -f $(COQPROJECT) -o Makefile.coq
47+
48+
# Global config, build, clean and distclean --------------------------
49+
config: sub-config this-config
50+
51+
build: sub-build this-build
52+
53+
clean: sub-clean this-clean
54+
55+
distclean: sub-distclean this-distclean
56+
57+
# Local config, build, clean and distclean ---------------------------
58+
.PHONY: this-config this-build this-distclean this-clean
59+
60+
this-config:: __always__
61+
62+
this-build:: this-config Makefile.coq
63+
+$(COQMAKE)
64+
65+
this-distclean:: this-clean
66+
rm -f Makefile.coq Makefile.coq.conf Makefile.coq
67+
68+
this-clean:: __always__
69+
@if [ -f Makefile.coq ]; then $(COQMAKE) cleanall; fi
70+
71+
# Install target -----------------------------------------------------
72+
.PHONY: install
73+
74+
install: __always__ Makefile.coq
75+
$(COQMAKE) install
76+
# counting lines of Coq code -----------------------------------------
77+
.PHONY: count
78+
79+
COQFILES = $(shell grep '.v$$' $(COQPROJECT))
80+
81+
count:
82+
@coqwc $(COQFILES) | tail -1 | \
83+
awk '{printf ("%d (spec=%d+proof=%d)\n", $$1+$$2, $$1, $$2)}'
84+
# Additionally cleaning backup (*~) files ----------------------------
85+
this-distclean::
86+
rm -f $(shell find . -name '*~')
87+
88+
# Make in SUBDIRS ----------------------------------------------------
89+
ifdef SUBDIRS
90+
sub-%: __always__
91+
@set -e; for d in $(SUBDIRS); do +$(MAKE) -C $$d $(@:sub-%=%); done
92+
else
93+
sub-%: __always__
94+
@true
95+
endif
96+
97+
# Make of individual .vo ---------------------------------------------
98+
%.vo: __always__ Makefile.coq
99+
+$(COQMAKE) $@

_CoqProject

+42-42
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
11
-arg -w
22
-arg -parsing
33

4-
a_props.v
5-
annotated_recs_b.v
6-
annotated_recs_c.v
7-
annotated_recs_d.v
8-
annotated_recs_s.v
9-
annotated_recs_v.v
10-
annotated_recs_z.v
11-
algo_closures.v
12-
arithmetics.v
13-
b_over_a_props.v
14-
b_props.v
15-
bigopz.v
16-
binomialz.v
17-
c_props.v
18-
conj.v
19-
extra_cauchyreals.v
20-
extra_mathcomp.v
21-
field_tactics.v
22-
harmonic_numbers.v
23-
initial_conds.v
24-
lia_tactics.v
25-
ops_for_a.v
26-
ops_for_b.v
27-
ops_for_s.v
28-
ops_for_u.v
29-
ops_for_v.v
30-
punk.v
31-
rat_of_Z.v
32-
reduce_order.v
33-
s_props.v
34-
seq_defs.v
35-
shift.v
36-
test_conj.v
37-
test_field_tactics.v
38-
z3irrational.v
39-
z3seq_props.v
40-
rho_computations.v
41-
multinomial.v
42-
floor.v
43-
hanson_elem_arith.v
44-
hanson_elem_analysis.v
45-
hanson.v
4+
theories/a_props.v
5+
theories/annotated_recs_b.v
6+
theories/annotated_recs_c.v
7+
theories/annotated_recs_d.v
8+
theories/annotated_recs_s.v
9+
theories/annotated_recs_v.v
10+
theories/annotated_recs_z.v
11+
theories/algo_closures.v
12+
theories/arithmetics.v
13+
theories/b_over_a_props.v
14+
theories/b_props.v
15+
theories/bigopz.v
16+
theories/binomialz.v
17+
theories/c_props.v
18+
theories/conj.v
19+
theories/extra_cauchyreals.v
20+
theories/extra_mathcomp.v
21+
theories/field_tactics.v
22+
theories/harmonic_numbers.v
23+
theories/initial_conds.v
24+
theories/lia_tactics.v
25+
theories/ops_for_a.v
26+
theories/ops_for_b.v
27+
theories/ops_for_s.v
28+
theories/ops_for_u.v
29+
theories/ops_for_v.v
30+
theories/punk.v
31+
theories/rat_of_Z.v
32+
theories/reduce_order.v
33+
theories/s_props.v
34+
theories/seq_defs.v
35+
theories/shift.v
36+
theories/test_conj.v
37+
theories/test_field_tactics.v
38+
theories/z3irrational.v
39+
theories/z3seq_props.v
40+
theories/rho_computations.v
41+
theories/multinomial.v
42+
theories/floor.v
43+
theories/hanson_elem_arith.v
44+
theories/hanson_elem_analysis.v
45+
theories/hanson.v
4646

4747

4848
-R . mathcomp.apery

a_props.v theories/a_props.v

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

b_props.v theories/b_props.v

File renamed without changes.

bigopz.v theories/bigopz.v

File renamed without changes.

binomialz.v theories/binomialz.v

File renamed without changes.

c_props.v theories/c_props.v

File renamed without changes.

conj.v theories/conj.v

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

floor.v theories/floor.v

File renamed without changes.

hanson.v theories/hanson.v

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

ops_for_a.v theories/ops_for_a.v

File renamed without changes.

ops_for_b.v theories/ops_for_b.v

File renamed without changes.
File renamed without changes.

ops_for_s.v theories/ops_for_s.v

File renamed without changes.

ops_for_u.v theories/ops_for_u.v

File renamed without changes.

ops_for_v.v theories/ops_for_v.v

File renamed without changes.

posnum.v theories/posnum.v

File renamed without changes.

punk.v theories/punk.v

File renamed without changes.

rat_of_Z.v theories/rat_of_Z.v

File renamed without changes.

rat_pos.v theories/rat_pos.v

File renamed without changes.
File renamed without changes.
File renamed without changes.

s_props.v theories/s_props.v

File renamed without changes.

seq_defs.v theories/seq_defs.v

File renamed without changes.

shift.v theories/shift.v

File renamed without changes.

test_conj.v theories/test_conj.v

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)