aboutsummaryrefslogtreecommitdiffhomepage
path: root/dev/Makefile.common
blob: 1ff5cf799e8b433e665d6aff4b0ec8cc35f9ab81 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# this Makefile contains goals common for directory and main devel makefiles

ifndef TOPDIR
TOPDIR=..
endif

ifndef BASEDIR
BASEDIR=
endif

# the following entries are used to make synchronize two source trees
# (on big computer and on a laptop for example)

OTHER_FILE=$(TOPDIR)/dev/other
OTHER=$(shell cat $(OTHER_FILE))

# this is a directory of useful temporary things
WORKDIR=tmp

ifneq (,$(findstring n,$(MAKEFLAGS)))
NFLAG=-n
else
NFLAG=
endif

check_other:
	+@(if [ "$(OTHER)" = "" ] ; then \
	  echo You must put the ssh path to the other Coq source in $(OTHER_FILE) ; \
	  echo For example: chrzaszc@ruta:coq/V7 ; \
	  exit 1; \
	fi)

get:	check_other
	+rsync -Cauvz $(NFLAG) $(OTHER)/ $(TOPDIR)/
	+@(if [ -d $(TOPDIR)/$(WORKDIR) ]; then \
	  rsync -auvz $(NFLAG) $(OTHER)/tmp/ $(TOPDIR)/tmp/ ; \
	fi)

put:	check_other
	+rsync -Cauvz $(NFLAG) $(TOPDIR)/ $(OTHER)/
	+@(if [ -d $(TOPDIR)/$(WORKDIR) ]; then \
	  rsync -auvz $(NFLAG) $(TOPDIR)/tmp/ $(OTHER)/tmp/ ; \
	fi)

sync:	get put


conflicts:
	cvs status | grep File | grep conflicts | less

confl:	conflicts