Changeset 4567 for palm


Ignore:
Timestamp:
Jun 19, 2020 9:30:03 AM (6 months ago)
Author:
eckhard
Message:

Don't let 'clean' remove code files if BIN_PATH is set to tests directory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/UTIL/inifor/tests/Makefile

    r4481 r4567  
    2525# -----------------
    2626# $Id$
     27# Don't let 'clean' remove code files if BIN_PATH is set to tests directory
     28#
     29#
     30# 4481 2020-03-31 18:55:54Z maronga
    2731# Updated copyright note
    2832#
     
    8589
    8690util.o: util.f90
    87         $(FC) $(FFLAGS) -c $< -o $@
     91        $(FC) $(FFLAGS) -c $< -o $@ $(INCLUDE)
    8892
    8993util.mod: util.f90
    90         $(FC) $(FFLAGS) -c $< -o $(@:%.mod=%.o)
     94        $(FC) $(FFLAGS) -c $< -o $(@:%.mod=%.o) $(INCLUDE)
    9195
    9296test-%.o: test-%.f90
     
    98102clean:
    99103        rm -rf *.mod *.o
    100         rm -rf $(BIN_PATH)/test-*
     104        for FILE in $(BIN_PATH)/test-*.f90; do rm -f $${FILE%.*}; done
Note: See TracChangeset for help on using the changeset viewer.