We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8c9891 commit 25d7129Copy full SHA for 25d7129
Makefile
@@ -21,7 +21,7 @@ test: $(TARGET)
21
$(FC) $(FFLAGS) $(LDFLAGS) -o test_zlib test/test_zlib.f90 $(TARGET) $(LDLIBS)
22
23
clean:
24
- rm *.o
25
- rm *.mod
26
- rm $(TARGET)
27
- rm test_zlib
+ if [ `ls -1 *.mod 2>/dev/null | wc -l` -gt 0 ]; then rm *.mod; fi
+ if [ `ls -1 *.o 2>/dev/null | wc -l` -gt 0 ]; then rm *.o; fi
+ if [ -e test_zlib ]; then rm test_zlib; fi
+ if [ -e $(TARGET) ]; then rm $(TARGET); fi
0 commit comments