[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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Around line 270 in makefile.all, I added the - in front of mkdir to
ignore the error. I don't know make syntax very well, so I don't know
if it thinks it's only mkdir'ing if it doesn't already exist or what.

create-install-dirs:
ifneq (,$(INSTALL_DIRS))
    define MKDIRS
    $(foreach file, $(filter-out $(existing_dirs), $(INSTALL_DIRS)), \
        -mkdir $(MKDIR_OPTS) $(file)
    )
    endef
	$(MKDIRS)
endif


--
Matthew Leverton - matthew@xxxxxxxxxx
http://www.allegro.cc




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/