I'm trying to do simple c++ class generator in makefile (depending on given name), but it's really annoying when i don't know bash, and how those things work.
class:
@echo "Type class name: "; \
read CLASS_NAME; \
echo Creating class called $${CLASS_NAME}; \
echo "Class $${CLASS_NAME} {
int x;
int y;
};">./$${CLASS_NAME}.h
How can I make the last echo work? I don't know how to echo multiple lines.