Skip to content

Commit e7233b6

Browse files
author
Gregory Malecha
committed
the "right" way to do Makefiles.
Conflicts: _CoqProject
1 parent ad3e508 commit e7233b6

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Makefile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@ PROJECT_NAME=coq-ext-lib
22

33
all: theories examples
44

5-
theories:
6-
$(MAKE) -C theories
5+
theories: Makefile.coq
6+
$(MAKE) -f Makefile.coq
77

8-
install:
9-
$(MAKE) -C theories install
8+
Makefile.coq:
9+
coq_makefile -f _CoqProject -o Makefile.coq
10+
11+
install: Makefile.coq
12+
$(MAKE) -f Makefile.coq install
1013

1114
examples: theories
1215
$(MAKE) -C examples
1316

1417
clean:
15-
$(MAKE) -C theories clean
18+
$(MAKE) -f Makefile.coq clean
1619
$(MAKE) -C examples clean
1720

1821
uninstall:
19-
$(MAKE) -C theories uninstall
22+
$(MAKE) -f Makefile.coq uninstall
2023

2124

2225
dist:
2326
@ git archive --prefix coq-ext-lib/ HEAD -o $(PROJECT_NAME).tgz
2427

25-
.dir-locals.el: tools/dir-locals.el
26-
@ sed s,PWD,$(shell pwd -P),g tools/dir-locals.el > .dir-locals.el
27-
2828
.PHONY: all clean dist theories examples

0 commit comments

Comments
 (0)