Fix for parallel make
authorPeter Eisentraut <[email protected]>
Wed, 6 Feb 2002 20:29:35 +0000 (20:29 +0000)
committerPeter Eisentraut <[email protected]>
Wed, 6 Feb 2002 20:29:35 +0000 (20:29 +0000)
doc/Makefile

index 8f843780a3c710dad7bbc689bffc2c5c5b4c50e7..0fe7a191e68dd63d81a3375d92f0b14f4aede644 100644 (file)
@@ -45,15 +45,17 @@ sqlmansectnum = $(shell expr X'$(sqlmansect)' : X'\([0-9]\)')
 
 all: man1/.timestamp man$(sqlmansectnum)/.timestamp
 
-man1/.timestamp man$(sqlmansect_dummy)/.timestamp: man.tar.gz
+man1/.timestamp: man$(sqlmansect_dummy)/.timestamp
+       @echo timestamp >$@
+
+man$(sqlmansect_dummy)/.timestamp: man.tar.gz
        gzip -d -c $< | $(TAR) xf -
        for file in man1/*.1; do \
          mv $$file $$file.bak && \
          sed -e 's/\\fR($(sqlmansect_dummy))/\\fR($(sqlmansectnum))/' $$file.bak >$$file && \
          rm $$file.bak || exit; \
        done
-       @echo timestamp >man1/.timestamp
-       @echo timestamp >man$(sqlmansect_dummy)/.timestamp
+       @echo timestamp >$@
 
 man$(sqlmansectnum)/.timestamp: man$(sqlmansect_dummy)/.timestamp
        $(mkinstalldirs) man$(sqlmansectnum)