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$