blob: e4474c2e6feaef23d4b3363ad2d50c0710cb10d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
H=@
ifeq "$(COQBIN)" ""
COQBIN=$(dir $(shell which coqtop))/
endif
# this sets variable V
include Makefile.detect-coq-version
# this defined coqmakefile
include Makefile.coq-makefile
COQDEP=$(COQBIN)coqdep
OLD_MAKEFLAGS:=$(MAKEFLAGS)
MAKEFLAGS+=-B
.DEFAULT_GOAL := all
%:
$(H)[ -e Makefile.coq ] || $(call coqmakefile,.)
$(H)MAKEFLAGS="$(OLD_MAKEFLAGS)" $(MAKE) --no-print-directory \
-f Makefile.coq $* \
COQDEP='$(COQDEP) -exclude-dir plugin -c'
clean:
$(H)MAKEFLAGS="$(OLD_MAKEFLAGS)" $(MAKE) --no-print-directory \
-f Makefile.coq clean
$(H)rm -f Makefile.coq
|