diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2008-11-09 14:24:10 +0100 |
---|---|---|
committer | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2008-11-10 01:22:04 -0200 |
commit | 0ab2815743d89b1cd283abaf4d2cb77fed4a2df4 (patch) | |
tree | 68e8e788baa902da2dce8db600c464377d60e82d /Makefile.am | |
parent | 01ba3d66731e679d07f7083306a712bbfed16b38 (diff) |
avoid race condition for parallel jobs
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am index 1a32798..7c13340 100644 --- a/Makefile.am +++ b/Makefile.am @@ -167,20 +167,25 @@ APPDEFAULTFILES = \ app-defaults/Xedit-color \ app-defaults/Xedit +$(APPDEFAULTFILES): appsubdir + +.PHONY: appsubdir + +# Ensure ./app-defaults exists, avoiding race condition for parallel jobs +appsubdir: + test -d app-defaults || mkdir app-defaults + if USE_XPRINT app-defaults/Xedit.ad: - test -d app-defaults || mkdir app-defaults cp $(top_srcdir)/app-defaults/Xedit-xprint.ad app-defaults/Xedit.ad else app-defaults/Xedit.ad: - test -d app-defaults || mkdir app-defaults cp $(top_srcdir)/app-defaults/Xedit-noxprint.ad app-defaults/Xedit.ad endif SUFFIXES = .ad .ad: - test -d app-defaults || mkdir app-defaults cp $< $@ appdefaultdir = @appdefaultdir@ |