I have the following implicit rule:
CFLAGS=-I../tcp/ -I../libip_udp/ -g -Wall
LDLIBS=framework.o ../tcp/libtcp.a ../libip_udp/libip.a
%.run : %.c $(LDLIBS)
$(CC) $< $(LDLIBS) -o $@ $(CFLAGS)
./$@
If I run make foo.run it will compile foo.c and execute foo.run. However, running make foo.run a second time will not do anything. How can I split the implicit rule such that it compiles when needed, but runs always?
For example:
Now just run it