5 ms·
Is there a way to make it work with just make? I'm way too used to just typing make at this point and it's not too much work to just copy the same makefile ever
by andromeduck 9y ago
Is there a way to make it work with just make? I'm way too used to just typing make at this point and it's not too much work to just copy the same makefile everywhere.
- chungy 9y agoecho "all: main" > Makefile make
- deleted 9y ago[deleted]
- to3m 9y agoUse a phony target that does whatever you want. Mine typically invoke cc to build the program ("cc -O3 -Wall -o main main.c", something like that?), then run the program ("./main"), which prints its stuff to stdout and stderr. Makes it very easy to build+run from within Emacs, where the default compile command is "make".