Skip to content

Commit

Permalink
[media] DocBook/media/Makefile: Do not fail mkdir if dir already exists
Browse files Browse the repository at this point in the history
Commit 5240f4e ("[media] DocBook/media/Makefile: Avoid make htmldocs
to fail") introduced a mkdir which is always called through
install_media_images from the Documentation/DocBook/Makefile htmldocs rule.
If you run 'make htmldocs' more than once you get:

 mkdir: cannot create directory ‘./Documentation/DocBook//media_api’:
  File exists

Add -p to the mkdir to continue no matter if the dir already exists.

Signed-off-by: Graham Whaley <graham.whaley@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
  • Loading branch information
Graham Whaley authored and Mauro Carvalho Chehab committed Nov 17, 2015
1 parent bef0e54 commit f82a9ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/DocBook/media/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ DVB_DOCUMENTED = \
#

install_media_images = \
$(Q)-mkdir $(MEDIA_OBJ_DIR)/media_api; \
$(Q)-mkdir -p $(MEDIA_OBJ_DIR)/media_api; \
cp $(OBJIMGFILES) $(MEDIA_SRC_DIR)/*.svg $(MEDIA_SRC_DIR)/v4l/*.svg $(MEDIA_OBJ_DIR)/media_api

$(MEDIA_OBJ_DIR)/%: $(MEDIA_SRC_DIR)/%.b64
Expand Down

0 comments on commit f82a9ec

Please sign in to comment.