From caf7e1ca0fe0681e22fa93364ecfec4ff8637f07 Mon Sep 17 00:00:00 2001 From: roktas Date: Fri, 10 Nov 2006 10:55:18 +0000 Subject: 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 --- Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3