[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Here is a patch that tells make not to fail when making the include
directories for allegro if they already exist. This was a problem for me
with make installall.
Index: makefile.all
===================================================================
RCS file: /cvsroot/alleg/allegro/makefile.all,v
retrieving revision 1.45
diff -u -r1.45 makefile.all
--- makefile.all 5 Aug 2004 08:18:17 -0000 1.45
+++ makefile.all 5 Aug 2004 15:39:45 -0000
@@ -263,60 +263,60 @@
ifdef UNIX_TOOLS
$(INSTALLDIR_U)/$(LIBDIR_U):
- mkdir $(MKDIR_OPTS) $(INSTALLDIR_U)/$(LIBDIR_U)
+ -mkdir $(MKDIR_OPTS) $(INSTALLDIR_U)/$(LIBDIR_U)
$(INSTALLDIR_U)/$(INCDIR_U)/allegro/platform/%.h: include/allegro/platform/%.h $(INSTALLDIR_U)/$(INCDIR_U)/allegro/platform
cp $< $@
$(INSTALLDIR_U)/$(INCDIR_U)/allegro/platform: $(INSTALLDIR_U)/$(INCDIR_U)/allegro
- mkdir $(MKDIR_OPTS) $(INSTALLDIR_U)/$(INCDIR_U)/allegro/platform
+ -mkdir $(MKDIR_OPTS) $(INSTALLDIR_U)/$(INCDIR_U)/allegro/platform
$(INSTALLDIR_U)/$(INCDIR_U)/allegro/internal/%.h: include/allegro/internal/%.h $(INSTALLDIR_U)/$(INCDIR_U)/allegro/internal
cp $< $@
$(INSTALLDIR_U)/$(INCDIR_U)/allegro/internal: $(INSTALLDIR_U)/$(INCDIR_U)/allegro
- mkdir $(MKDIR_OPTS) $(INSTALLDIR_U)/$(INCDIR_U)/allegro/internal
+ -mkdir $(MKDIR_OPTS) $(INSTALLDIR_U)/$(INCDIR_U)/allegro/internal
$(INSTALLDIR_U)/$(INCDIR_U)/allegro/inline/%.inl: include/allegro/inline/%.inl $(INSTALLDIR_U)/$(INCDIR_U)/allegro/inline
cp $< $@
$(INSTALLDIR_U)/$(INCDIR_U)/allegro/inline: $(INSTALLDIR_U)/$(INCDIR_U)/allegro
- mkdir $(MKDIR_OPTS) $(INSTALLDIR_U)/$(INCDIR_U)/allegro/inline
+ -mkdir $(MKDIR_OPTS) $(INSTALLDIR_U)/$(INCDIR_U)/allegro/inline
$(INSTALLDIR_U)/$(INCDIR_U)/allegro/%.h: include/allegro/%.h $(INSTALLDIR_U)/$(INCDIR_U)/allegro
cp $< $@
$(INSTALLDIR_U)/$(INCDIR_U)/allegro: $(INSTALLDIR_U)/$(INCDIR_U)
- mkdir $(MKDIR_OPTS) $(INSTALLDIR_U)/$(INCDIR_U)/allegro
+ -mkdir $(MKDIR_OPTS) $(INSTALLDIR_U)/$(INCDIR_U)/allegro
$(INSTALLDIR_U)/$(INCDIR_U)/%.h: include/%.h $(INSTALLDIR_U)/$(INCDIR_U)
cp $< $@
$(INSTALLDIR_U)/$(INCDIR_U):
- mkdir $(MKDIR_OPTS) $(INSTALLDIR_U)/$(INCDIR_U)
+ -mkdir $(MKDIR_OPTS) $(INSTALLDIR_U)/$(INCDIR_U)
else
$(INSTALLDIR_U)/$(LIBDIR_U):
- md $(INSTALLDIR_D)\$(LIBDIR_D)
+ -md $(INSTALLDIR_D)\$(LIBDIR_D)
$(INSTALLDIR_U)/$(INCDIR_U)/allegro/platform/%.h: include/allegro/platform/%.h $(INSTALLDIR_U)/$(INCDIR_U)/allegro/platform
copy $(subst /,\,$< $@)
$(INSTALLDIR_U)/$(INCDIR_U)/allegro/platform: $(INSTALLDIR_U)/$(INCDIR_U)/allegro
- md $(INSTALLDIR_D)\$(INCDIR_D)\allegro\platform
+ -md $(INSTALLDIR_D)\$(INCDIR_D)\allegro\platform
$(INSTALLDIR_U)/$(INCDIR_U)/allegro/internal/%.h: include/allegro/internal/%.h $(INSTALLDIR_U)/$(INCDIR_U)/allegro/internal
copy $(subst /,\,$< $@)
$(INSTALLDIR_U)/$(INCDIR_U)/allegro/internal: $(INSTALLDIR_U)/$(INCDIR_U)/allegro
- md $(INSTALLDIR_D)\$(INCDIR_D)\allegro\internal
+ -md $(INSTALLDIR_D)\$(INCDIR_D)\allegro\internal
$(INSTALLDIR_U)/$(INCDIR_U)/allegro/inline/%.inl: include/allegro/inline/%.inl $(INSTALLDIR_U)/$(INCDIR_U)/allegro/inline
copy $(subst /,\,$< $@)
$(INSTALLDIR_U)/$(INCDIR_U)/allegro/inline: $(INSTALLDIR_U)/$(INCDIR_U)/allegro
- md $(INSTALLDIR_D)\$(INCDIR_D)\allegro\inline
+ -md $(INSTALLDIR_D)\$(INCDIR_D)\allegro\inline
$(INSTALLDIR_U)/$(INCDIR_U)/allegro/%.h: include/allegro/%.h $(INSTALLDIR_U)/$(INCDIR_U)/allegro
copy $(subst /,\,$< $@)
@@ -329,7 +329,7 @@
copy $(subst /,\,$< $@)
$(INSTALLDIR_U)/$(INCDIR_U):
- md $(INSTALLDIR_D)\$(INCDIR_D)
+ -md $(INSTALLDIR_D)\$(INCDIR_D)
endif