Re: [dev] automating running and building
Build & execute by simply typing `make`
```
SRC = dummy.c
OBJ = $(SRC:.c=.o)
EXE = dummy
all: $(EXE)
_AT_./$(EXE)
.c.o:
$(CC) -c $(CFLAGS) $<
$(EXE): $(OBJ)
$(CC) -o $(EXE) $(OBJ) $(LDFLAGS)
```
On Thu, Jan 7, 2016 at 7:08 PM, Greg Reagle <greg.reagle_AT_umbc.edu> wrote:
> On Thu, Jan 07, 2016 at 05:22:38PM -0800, Louis Santillan wrote:
>> Do mean something like this in a makefile? Essentially adding a
>> `./$_AT_` to end of `dwm` target:
>
> I tried it and it does not seem to be a solution. If dwm is up to date,
> Make won't run the recipe and ./$_AT_ won't be run. So you have to use 'make
> dwm; ./dwm' every time, in which case, there is no need to modify the
> Makefile.
>
Received on Fri Jan 08 2016 - 08:57:32 CET
This archive was generated by hypermail 2.3.0
: Fri Jan 08 2016 - 09:00:13 CET