pkgs.mk - misc/copyright.cddl+unicode target could fail with 'make -j'
authorjenda
Thu, 14 Jan 2010 13:45:11 +0100
changeset 101 8ab52a58eb9a
parent 100 947529dd1379
child 102 9893d67673eb
pkgs.mk - misc/copyright.cddl+unicode target could fail with 'make -j'
misc/mk/pkgs.mk
--- a/misc/mk/pkgs.mk	Thu Jan 14 13:16:18 2010 +0100
+++ b/misc/mk/pkgs.mk	Thu Jan 14 13:45:11 2010 +0100
@@ -48,7 +48,8 @@
 
 
 $(FILEROOT)/copyright.cddl+unicode: misc/copyright.cddl+unicode
-	cp $< $@
+	$(Q)[ -d $(@D) ] || mkdir -p $(@D)
+	$(Q)cp $< $@
 
 
 $(LOCALES:%=build/%/.installed_locale): build/%/.installed_locale: build/%/32bit.so.3 build/%/64bit.so.3 build/%/locale_desc build/%/locale_map