Fix a serious bug in Makefile. 'make' should recompile when a source file
has been modified.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@88 788f1e2b-df1e-0410-8736-df70ead52e1b
commitcaf7e1ca0fe0681e22fa93364ecfec4ff8637f07
authorroktas <roktas@788f1e2b-df1e-0410-8736-df70ead52e1b>
dateFri 10 Nov 2006, 10:55 (20 years ago)
parent82d7190
Makefile+3−4
@@ -102,16 +102,15 @@ $(BUILDCONF): $(CABAL)
102102 @echo "DESTDIR?=$(DESTDIR)" >>$(BUILDVARS)
103103
104104.PHONY: build
105−build: $(BUILDDIR)
106−$(BUILDDIR)/: templates configure
105+build: templates configure
107106 $(BUILDCMD) build
108107
109108.PHONY: build-exec
110109build-exec: $(EXECS)
111110cleanup_files+=$(EXECS)
112−$(EXECS): $(BUILDDIR)
111+$(EXECS): build
113112 for f in $@; do \
114− find $(BUILDDIR) -type f -name "$$f" -perm +a=x -exec cp {} . \; ; \
113+ find $(BUILDDIR) -type f -name "$$f" -perm +a=x -exec cp -p {} . \; ; \
115114 done
116115
117116.PHONY: build-doc