Re: [AD] make failing on mkdir |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
> This is what happens:
>
> C:\code\allegro>make installall STATICLINK=1
> make msg lib install
> make[1]: Entering directory `C:/code/allegro'
> Compiling Allegro for MSVC, optimised statically linked. Please wait...
> make[1]: Nothing to be done for `lib'.
> mkdir C:\PROGRA~1\MICROS~2\VC98\lib
> A subdirectory or file C:\PROGRA~1\MICROS~2\VC98\lib already exists.
> make[1]: *** [create-install-dirs] Error 1
> make[1]: Leaving directory `C:/code/allegro'
> make: *** [installall] Error 2
Bloody &^!%%&@!&!@^**(
This should be fixed now... I'm not sure what the problem is:
> create-install-dirs:
> ifneq (,$(INSTALL_DIRS))
> define MKDIRS
> $(foreach file, $(filter-out $(existing_dirs), $(INSTALL_DIRS)), \
> -mkdir $(MKDIR_OPTS) $(file)
> )
> endef
> $(MKDIRS)
> endif
This code should only generate mkdir commandsfor directories that don't
exist yet. For some reason, it's still trying to create them.
Adding - infront of mkdir will indeed get rid of the error, but has another
problem associated with it (which is why it isn't included by default):
mkdir can fail for legitimate reasons too, in which case you don't want to
ignore the error.
I'm not sure what to do, but I suppose we should try to find out why this
isn't detecting that those directories already exist...
Evert