File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 2828 -ftrapuv -init=snan,arrays -debug all -D DEBUG
2929 LIBS =-I$(HDF5_HOME ) /include
3030 LINKS =-L$(HDF5_HOME ) /lib -lhdf5_fortran -lhdf5 -lpthread -lz -lm
31+ LS_FULLTIME =--full-time
32+
33+ # ## OSX Test
34+ UNAME := $(shell uname -s)
35+ ifeq ($(UNAME ) ,Darwin)
36+ # macOS-specific settings
37+ LS_FULLTIME =-T
38+ endif
3139
3240# ### GFORTRAN+OpenMPI+HDF5###############
3341# available env: /p/focus/modules/focus/gfortran
@@ -148,7 +156,7 @@ clean:
148156
149157$(PFILES ) : % .pdf: % .f90 head.tex end.tex
150158# @ls -lT $*.f90 | cut -c 35-55 > .$*.date
151- @ls --full-time $*.f90 | cut -c 32-50 > .$*.date
159+ @ls $(LS_FULLTIME) $*.f90 | cut -c 32-50 > .$*.date
152160 @awk -v file=$* -v date=.$*.date 'BEGIN{getline cdate < date ; FS="!latex" ; print "\\input{head} \\code{"file"}"} \
153161 {if(NF>1) print $$2} \
154162 END{print "\\vspace{1mm} \\hrule \\vspace{1mm} \\footnotesize $*.f90 last modified on "cdate";" ; print "\\input{end}"}' $*.f90 > $*.tex
You can’t perform that action at this time.
0 commit comments