diff options
author | roktas <roktas@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2006-11-10 10:55:18 +0000 |
---|---|---|
committer | roktas <roktas@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2006-11-10 10:55:18 +0000 |
commit | caf7e1ca0fe0681e22fa93364ecfec4ff8637f07 (patch) | |
tree | 3c376c11b1abc099b6614d6ad10518a81bd04497 /Makefile | |
parent | 82d7190a0c1a30e7f000ed771e6fdd93cf735210 (diff) | |
download | pandoc-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-- | Makefile | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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 |