makeとbash

http://www.unixuser.org/~euske/doc/makefile/index.html

よくわからないので勉強しないと。

test : 
	-cmp a.txt b.txt; \
	num1=$$?; \
	if [ $$num1 -ne 0 ]; \
	then \
		cp a.txt b.txt; \
	fi