I need to generate a directory in my makefile and I would like to not get the ‘directory already exists error’ over and over even though I can easily ignore it.
I mainly use mingw/msys but would like something that works across other shells/systems too.
I tried this but it didn’t work, any ideas?
ifeq (,$(findstring $(OBJDIR),$(wildcard $(OBJDIR) ))) -mkdir $(OBJDIR) endif
On UNIX Just use this:
The -p option to mkdir prevents the error message if the directory exists.