2009-07-17 09:42 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)

* config/globsh.cf
    ! Attempt to fix posix shell clean rules.
      Please test. If the logic is about okay, we might want to
      replicate it for other shells.
This commit is contained in:
Viktor Szakats
2009-07-17 07:43:00 +00:00
parent 30c0587f4c
commit c6b4c765e5
2 changed files with 23 additions and 1 deletions

View File

@@ -17,6 +17,12 @@
past entries belonging to author(s): Viktor Szakats.
*/
2009-07-17 09:42 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/globsh.cf
! Attempt to fix posix shell clean rules.
Please test. If the logic is about okay, we might want to
replicate it for other shells.
2009-07-17 09:31 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/globsh.cf
! Minor fix dir creation to rules. (only create bin/lib target

View File

@@ -33,7 +33,23 @@ dirbase::
@[ -z $(EXE_FILE) ] || [ -d $(EXE_DIR) ] || $(MDP) $(EXE_DIR)
clean::
-$(RD) $(OBJ_DIR) $(LIB_DIR) $(EXE_DIR)
-@$(RD) $(OBJ_DIR) $(LIB_FILE) $(EXE_FILE); \
if [ ! -z $(LIB_FILE) ]; \
then \
$(RD) $(basename $(LIB_FILE)).bak; \
if [ ! -f $(LIB_DIR)/* ]; \
then \
$(RD) $(LIB_DIR); \
fi \
fi ; \
if [ ! -z $(EXE_FILE) ]; \
then \
$(RD) $(basename $(EXE_FILE)).tds; \
if [ ! -f $(EXE_DIR)/* ]; \
then \
$(RD) $(EXE_DIR); \
fi \
fi
endif