J
jmborr
While running make, I obtain the following error:
make: *** No rule to make target `amino_acid_param.h', needed by
`pdb2txt_relax.o'. Stop.
I'm confused, since header files (*.h) shouldn't need rules because
they're not compiled. What can I do?
Below is the makefile. Note that this makefile calls another makefile, and
it seems the error comes from this fact.
# file makefile_pdb2txt_relax
HOME = /users/seldon/jmborr
CODE = $(HOME)/Code
VPATH = $(CODE)/Heavy_atom_code:$(CODE)/PDBClasses
pdb2txt_relax.x: pdb2txt_relax.o amino_acid_param.o \
atom_param.o miscellanea.o \
bibliography.o pdbClasses2.o
g++ -o pdb2txt_relax.x pdb2txt_relax.o \
amino_acid_param.o atom_param.o \
miscellanea.o bibliography.o pdbClasses2.o
pdb2txt_relax.o: pdb2txt_relax.cpp amino_acid_param.h \
atom_param.h miscellanea.h random.h
g++ -Wno-deprecated -c pdb2txt_relax.cpp
include $(CODE)/Heavy_atom_code/makefile_Heavy_atom_code
PHONY : clean
clean :
rm -rf *.o core
#
Here below is the referred makefile
#file makefile_Heavy_atom_code
HOME = /users/seldon/jmborr
CODE = $(HOME)/Code
VPATH = $(CODE)/PDBClasses
amino_acid_param.o: amino_acid_param.cpp amino_acid_param.h miscellanea.h
g++ -Wno-deprecated -c amino_acid_param.cpp
atom_param.o: atom_param.cpp atom_param.h miscellanea.h bibliography.h
g++ -Wno-deprecated -c atom_param.cpp
miscellanea.o: miscellanea.cpp miscellanea.h bibliography.h pdbClasses2.h
g++ -Wno-deprecated -c miscellanea.cpp
bibliography.o: bibliography.cpp bibliography.h
g++ -Wno-deprecated -c bibliography.cpp
include $(CODE)/makefile_PDBClasses
make: *** No rule to make target `amino_acid_param.h', needed by
`pdb2txt_relax.o'. Stop.
I'm confused, since header files (*.h) shouldn't need rules because
they're not compiled. What can I do?
Below is the makefile. Note that this makefile calls another makefile, and
it seems the error comes from this fact.
# file makefile_pdb2txt_relax
HOME = /users/seldon/jmborr
CODE = $(HOME)/Code
VPATH = $(CODE)/Heavy_atom_code:$(CODE)/PDBClasses
pdb2txt_relax.x: pdb2txt_relax.o amino_acid_param.o \
atom_param.o miscellanea.o \
bibliography.o pdbClasses2.o
g++ -o pdb2txt_relax.x pdb2txt_relax.o \
amino_acid_param.o atom_param.o \
miscellanea.o bibliography.o pdbClasses2.o
pdb2txt_relax.o: pdb2txt_relax.cpp amino_acid_param.h \
atom_param.h miscellanea.h random.h
g++ -Wno-deprecated -c pdb2txt_relax.cpp
include $(CODE)/Heavy_atom_code/makefile_Heavy_atom_code
PHONY : clean
clean :
rm -rf *.o core
#
Here below is the referred makefile
#file makefile_Heavy_atom_code
HOME = /users/seldon/jmborr
CODE = $(HOME)/Code
VPATH = $(CODE)/PDBClasses
amino_acid_param.o: amino_acid_param.cpp amino_acid_param.h miscellanea.h
g++ -Wno-deprecated -c amino_acid_param.cpp
atom_param.o: atom_param.cpp atom_param.h miscellanea.h bibliography.h
g++ -Wno-deprecated -c atom_param.cpp
miscellanea.o: miscellanea.cpp miscellanea.h bibliography.h pdbClasses2.h
g++ -Wno-deprecated -c miscellanea.cpp
bibliography.o: bibliography.cpp bibliography.h
g++ -Wno-deprecated -c bibliography.cpp
include $(CODE)/makefile_PDBClasses