blob: 54e8d3255acbc319f6861548144315dcc23729b9 (
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
|
SYREP=../src/syrep
ifdef VERBOSE
VERBOSE=-v
endif
ARGS+=--sort --check-md -z -T --output-directory=extract -opatch --show-deleted --show-times --prune-empty
%:
@mkdir -p rep1 rep2
$(SYREP) $(VERBOSE) $(ARGS) --$@ rep1 rep2
all: update
merge:
@echo "Merging rep1 into rep2"
$(SYREP) $(ARGS) --merge rep1 rep2
@echo "Merging rep2 into rep1"
$(SYREP) $(ARGS) --merge rep2 rep1
mergepatch:
@echo "*** Creating patch rep1 against rep2 ***"
$(SYREP) $(ARGS) --makepatch rep1 rep2
@echo "*** Merging patch into rep2 ***"
$(SYREP) $(ARGS) --merge patch rep2
@echo "*** Creating patch rep2 against rep1 ***"
$(SYREP) $(ARGS) --makepatch rep2 rep1
@echo "*** Merging patch into rep1 ***"
$(SYREP) $(ARGS) --merge patch rep1
clean:
mrproper:
$(SYREP) -v --cleanup-level=3 --cleanup rep1 rep2
.PHONY: all merge clean mrproper mergepatch
# $Id$
|