diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 62817913a7..7bf9dc8b8b 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,15 @@ past entries belonging to author(s): Viktor Szakats. */ +2009-08-21 13:46 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) + * config/os2/gcc.mk + % Using $(wildcard) instead of echo trick to delete target lib. + Please test. I don't have access to OS/2. + ; 'if exist' and 'if not exist' are now only used from + globsh.mk nt and os2 shell sections. + ; TOFIX: $(COMSPEC) still in OS/2 section. Test results would be + welcome without it. + 2009-08-21 13:34 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * config/win/bcc.mk * config/win/watcom.mk diff --git a/harbour/config/os2/gcc.mk b/harbour/config/os2/gcc.mk index 2d8fdda28e..fd7de41ffa 100644 --- a/harbour/config/os2/gcc.mk +++ b/harbour/config/os2/gcc.mk @@ -78,7 +78,7 @@ endif # We have to use a script to overcome the AR limit of max 850 characters # in commmand line define create_library - if exist $(subst /,$(DIRSEP),$(LIB_FILE)) $(RM) $(subst /,$(DIRSEP),$(LIB_FILE)) + $(if $(wildcard $(subst /,$(DIRSEP),$(LIB_FILE))),@$(RM) $(subst /,$(DIRSEP),$(LIB_FILE)),) @$(ECHO) CREATE $(LIB_DIR)/$@ > __lib__.tmp for %i in ( *$(OBJ_EXT) ) do @$(ECHO) ADDMOD %i >> __lib__.tmp @$(ECHO) SAVE >> __lib__.tmp