changeset 950:72e53a705775

Add comments.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 17 May 2010 21:08:26 +0000
parents dff83840b3e7
children 3a63920b2cb7
files maps/Makefile
diffstat 1 files changed, 12 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/maps/Makefile	Sun May 16 21:47:05 2010 +0000
+++ b/maps/Makefile	Mon May 17 21:08:26 2010 +0000
@@ -30,19 +30,24 @@
 
 include Makefile.inc
 
-#
-# Special targets
-#
+###
+### Special targets
+###
+
+# Upload changed files to site
 upload: $(TARGETS) renardy.map *.loc util.js
 	scp -C $? $(UPURL)
 	touch $@
 
+# Upload only *.loc files
 uploc: *.loc
 	scp $+ $(UPURL)
 
+# Fetch raw ASCII maps from bat.org to *.new
 fetch:
 	for i in $(MAPMAP); do wget `echo "$$i"|sed "s|^\([^:]*\):\(.*\)|-O \2.new $(BATMAPURL)\1.txt|"`; done
 
+# Diff target between .map file and .new file. Makes necessary changes in .map and .loc
 %.diff: %.map %.new
 	@echo DIFFING $< ...
 	@if ! $(DIFFMAP_BIN) $+ -o $@ -a; then \
@@ -53,12 +58,16 @@
 	@$(MKLOC_BIN) -v -m $(patsubst %.map,%.new,$<) -l $(patsubst %.map,%.loc,$<) -L -g -o $(patsubst %.map,%.nloc,$<)
 	@diff -ubB $(patsubst %.map,%.loc,$<) $(patsubst %.map,%.nloc,$<) | patch
 
+# Remove all temporary .diff files
 cleardiff:
 	$(RM) *.diff
 
+# Diff target - run diff for each .map and .new (fetched via 'fetch' target).
+# Finally do 'svn diff' to show changes.
 diff: cleardiff $(patsubst %.map,%.diff,$(MAPLIST))
 	@svn diff
 
+# Clean temporary and generated targets
 clean:
 	$(RM) $(TARGETS) *.diff *.ppm *.o *.script