/usr/lib/auto-07p/cmds/Makefile.in is in auto-07p 0.9.1+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 | #===> auto.makefile
#
# Makefile written by Xianjun WANG in March 1994
#
# This Makefile is called from the Graphic User Interface (GUI)
#
# The following environment variables are controlled in GUI program
# at run time:
#
# PROGRAMNAME : the name of the program
# NEW_PROGRAMNAME : the output data name saved by "save as ..." button
# NEW_PLOTNAME : the output data name to be plotted by "plot name ..." button
# RESTARTNAME : the restart data name to be set to unit 3 (fort.3)
# RESTARTDATA : same as RESTARTNAME, but only needed in GUI program
# COPYFROM : the name of the output data to be copied from
# COPYTO : the name of the output data to be copied to
# MOVEFROM : the name of the output data to be moved from
# MOVETO : the name of the output data to be moved to
# APPENDFROM : the name of the output data to be appended from
# APPENDTO : the name of the output data to be appended to
# DELETEDATA : the name of the output data to be deleted
#
#
.IGNORE:
#
FC = @FC@
FFLAGS = @FFLAGS@
OPT = @OPT_FLAG@
SRC = $(PROGRAMNAME).f
OBJ = $(PROGRAMNAME).o
EXE = $(PROGRAMNAME).exe
LIBS = $(AUTO_DIR)/lib/*.o
RM = rm -f
#
start: $(EXE) run
#
run:
@echo " "
@echo "Starting $(PROGRAMNAME) ..."
@echo " "
@cp c.$(PROGRAMNAME) fort.2
@touch fort.3
@./$(EXE)
@rm -f fort.3
@echo " "
@echo "$(PROGRAMNAME) ... done"
#
restart: $(EXE) rerun
rerun:
@echo " "
@echo "Restarting $(PROGRAMNAME) ..."
@echo " "
@cp c.$(PROGRAMNAME) fort.2
@cp s.$(RESTARTNAME) fort.3
@./$(EXE)
@rm -f fort.3
@echo " "
@echo "$(PROGRAMNAME) ... done"
#
$(EXE): $(OBJ)
$(FC) $(FFLAGS) $(OPT) $(OBJ) -o $@ $(LIBS)
#
$(OBJ): $(SRC)
$(FC) $(FFLAGS) $(OPT) -c $(SRC) -o $@
#
save:
@echo " "
@echo "Starting save ..."
@cp fort.7 b.$(PROGRAMNAME)
@echo "Saved fort.7 as b.$(PROGRAMNAME)"
@cp fort.8 s.$(PROGRAMNAME)
@echo "Saved fort.8 as s.$(PROGRAMNAME)"
@cp fort.9 d.$(PROGRAMNAME)
@echo "Saved fort.9 as d.$(PROGRAMNAME)"
@echo "Saving ... done"
@echo " "
#
saveas:
@echo " "
@echo "Starting save ..."
@cp fort.7 b.$(NEW_PROGRAMNAME)
@echo "Saved fort.7 as b.$(NEW_PROGRAMNAME)"
@cp fort.8 s.$(NEW_PROGRAMNAME)
@echo "Saved fort.8 as s.$(NEW_PROGRAMNAME)"
@cp fort.9 d.$(NEW_PROGRAMNAME)
@echo "Saved fort.9 as d.$(NEW_PROGRAMNAME)"
@cp fort.2 c.$(NEW_PROGRAMNAME)
@echo "Saved fort.2 as c.$(NEW_PROGRAMNAME)"
@echo "Saving ... done"
@echo " "
#
append:
@echo " "
@echo "Starting append ..."
@cat fort.7 >> b.$(PROGRAMNAME)
@echo "Appended fort.7 to b.$(PROGRAMNAME)"
@cat fort.8 >> s.$(PROGRAMNAME)
@echo "Appended fort.8 to s.$(PROGRAMNAME)"
@cat fort.9 >> d.$(PROGRAMNAME)
@echo "Appended fort.9 to d.$(PROGRAMNAME)"
@echo "Appending ... done"
@echo " "
#
appendto:
@echo " "
@echo "Starting append ..."
@cat fort.7 >> b.$(NEW_PROGRAMNAME)
@echo "Appended fort.7 to b.$(NEW_PROGRAMNAME)"
@cat fort.8 >> s.$(NEW_PROGRAMNAME)
@echo "Appended fort.8 to s.$(NEW_PROGRAMNAME)"
@cat fort.9 >> d.$(NEW_PROGRAMNAME)
@echo "Appended fort.9 to d.$(NEW_PROGRAMNAME)"
@echo "Appending ... done"
@echo " "
#
plot_current:
@echo " "
@echo "Starting plaut ..."
@cp b.$(PROGRAMNAME) fort.17
@cp s.$(PROGRAMNAME) fort.18
@echo "Plotting b.$(PROGRAMNAME) and s.$(PROGRAMNAME) ..."
@xterm -bg black -fg white -t -e $(AUTO_DIR)/bin/plaut
@$(RM) fort.17
@$(RM) fort.18
@echo "Plotting ... done"
@echo " "
#
plot_other:
@echo " "
@echo "Starting plaut ..."
@cp b.$(NEW_PLOTNAME) fort.17
@cp s.$(NEW_PLOTNAME) fort.18
@echo "Plotting b.$(NEW_PLOTNAME) and s.$(NEW_PLOTNAME) ..."
@xterm -bg black -fg white -t -e $(AUTO_DIR)/bin/plaut
@$(RM) fort.17
@$(RM) fort.18
@echo "Plotting ... done"
@echo " "
#
restartdata:
@echo " "
@echo "Setting s.$(RESTARTDATA) as restart file ... done"
#
copydata:
@echo " "
@cp b.$(COPYFROM) b.$(COPYTO)
@echo "Copying b.$(COPYFROM) to b.$(COPYTO) ... done"
@cp s.$(COPYFROM) s.$(COPYTO)
@echo "Copying s.$(COPYFROM) to s.$(COPYTO) ... done"
@cp d.$(COPYFROM) d.$(COPYTO)
@echo "Copying d.$(COPYFROM) to d.$(COPYTO) ... done"
@cp c.$(COPYFROM) c.$(COPYTO)
@echo "Copying c.$(COPYFROM) to c.$(COPYTO) ... done"
#
appenddata:
@echo " "
@cat b.$(APPENDFROM) >> b.$(APPENDTO)
@echo "Appending b.$(APPENDFROM) to b.$(APPENDTO) ... done"
@cat s.$(APPENDFROM) >> s.$(APPENDTO)
@echo "Appending s.$(APPENDFROM) to s.$(APPENDTO) ... done"
@cat d.$(APPENDFROM) >> d.$(APPENDTO)
@echo "Appending d.$(APPENDFROM) to d.$(APPENDTO) ... done"
#
movedata:
@echo " "
@mv -f b.$(MOVEFROM) b.$(MOVETO)
@echo "Moving b.$(MOVEFROM) to b.$(MOVETO) ... done"
@mv -f s.$(MOVEFROM) s.$(MOVETO)
@echo "Moving s.$(MOVEFROM) to s.$(MOVETO) ... done"
@mv -f d.$(MOVEFROM) d.$(MOVETO)
@echo "Moving d.$(MOVEFROM) to d.$(MOVETO) ... done"
@mv -f c.$(MOVEFROM) c.$(MOVETO)
@echo "Moving c.$(MOVEFROM) to c.$(MOVETO) ... done"
#
deletedata:
@echo " "
@$(RM) b.$(DELETEDATA)
@echo "Deleting b.$(DELETEDATA) ... done"
@$(RM) s.$(DELETEDATA)
@echo "Deleting s.$(DELETEDATA) ... done"
@$(RM) d.$(DELETEDATA)
@echo "Deleting d.$(DELETEDATA) ... done"
#
clean:
@echo " "
@echo "Cleaning ..."
@$(RM) *.o fort.* *.exe *.trace core
@echo "Cleaning ... done"
@echo " "
#
# DO NOT ADD ANYTHING AFTER THIS LINE
#
|