Using make on my Gentoo machine (which is GNU make 3.82) with the following Makefile
, I wonder why the target data/spectra/o4_greenblatt_296K.dat
gets updated every time I execute make data/spectra/o4_greenblatt_296K.dat
, even though none of the files params/base/fwhm.dat
, params/base/wavelength_grid.dat
, and data/raw/o4green_gpp.dat
has changed, and the file data/spectra/o4_greenblatt_296K.dat
already exists:
FWHM = params/base/fwhm.dat
WLGRID = params/base/wavelength_grid.dat
$(WLGRID): code/create_wavelength_grid.py
cp code/create_wavelength_grid.py params/base/wavelength_grid.dat
$(FWHM): code/create_fwhm_param.py
cp code/create_fwhm_param.py params/base/fwhm.dat
data/raw/o4green_gpp.dat:
echo 1 > data/raw//o4green_gpp.dat
input_spectra_o4_raw: data/raw/o4green_gpp.dat
data/spectra/o4_greenblatt_296K.dat: $(WLGRID) $(FWHM) input_spectra_o4_raw
echo 1 > data/spectra/o4_greenblatt_296K.dat
input_spectra_o4: data/spectra/o4_greenblatt_296K.dat
Any help you guys can give a make newbie is greatly appreciated :)