aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorroktas <roktas@788f1e2b-df1e-0410-8736-df70ead52e1b>2006-11-10 10:55:18 +0000
committerroktas <roktas@788f1e2b-df1e-0410-8736-df70ead52e1b>2006-11-10 10:55:18 +0000
commitcaf7e1ca0fe0681e22fa93364ecfec4ff8637f07 (patch)
tree3c376c11b1abc099b6614d6ad10518a81bd04497 /Makefile
parent82d7190a0c1a30e7f000ed771e6fdd93cf735210 (diff)
downloadpandoc-caf7e1ca0fe0681e22fa93364ecfec4ff8637f07.tar.gz
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
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 5c70f84f0..1d175aa20 100644
--- a/Makefile
+++ b/Makefile
@@ -102,16 +102,15 @@ $(BUILDCONF): $(CABAL)
@echo "DESTDIR?=$(DESTDIR)" >>$(BUILDVARS)
.PHONY: build
-build: $(BUILDDIR)
-$(BUILDDIR)/: templates configure
+build: templates configure
$(BUILDCMD) build
.PHONY: build-exec
build-exec: $(EXECS)
cleanup_files+=$(EXECS)
-$(EXECS): $(BUILDDIR)
+$(EXECS): build
for f in $@; do \
- find $(BUILDDIR) -type f -name "$$f" -perm +a=x -exec cp {} . \; ; \
+ find $(BUILDDIR) -type f -name "$$f" -perm +a=x -exec cp -p {} . \; ; \
done
.PHONY: build-doc