I'm new to makefiles and trying to create multiple files at once by using a makefile containing touch file-{1..10}.txt. This doesn't work as expected as it creates a file called file-{1..10}.txt instead of creating the files file-1.txt through file-10.txt.
This is the code of the makefile:
.DEFAULT_GOAL := generate
say_hello:
@echo "Hello World"
generate:
@echo "Creating empty text files..."
touch file-{1..10}.txt
clean:
@echo "Cleaning up..."
rm *.txt
When entering make into the terminal, it prints
Creating empty text files...
touch file-{1..10}.txt
and creates the file file-{1..10}.txt.
Entering touch file-{1..10}.txt into the terminal creates file-1.txt through file-10.txt as usual.