From 3316e692647ea83afc1fd24b8f8d5b6da9999412 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Sat, 26 Sep 2009 20:58:53 +0200 Subject: [PATCH] Makefile: introduced `make sync`, which creates and updates a data/ clone --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8c61571..36629a4 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ TEMPLATES=$(wildcard root/*/*.zone.in) ZONES=$(addprefix stage/,$(notdir $(basename $(TEMPLATES)))) -.PHONY: all clean +.PHONY: all clean sync all: $(ZONES) @@ -10,6 +10,12 @@ clean: ls -1 root/*/$$x.in > /dev/null 2>&1 || rm -v stage/$$x; \ done +sync: data + @cd data/; git pull + +data: + git clone . data + root/preprocessor.sed: root/preprocessor.sh $(wildcard root/*.in) root/servers.txt @$< > $@