Makefile: make config.h changes trigger recompile
This commit is contained in:
parent
dd5666a006
commit
8ddd5f0c0b
6
Makefile
6
Makefile
@ -20,12 +20,14 @@ all: config.h minrss
|
|||||||
debug: CFLAGS += -g3
|
debug: CFLAGS += -g3
|
||||||
debug: config.h minrss
|
debug: config.h minrss
|
||||||
|
|
||||||
config.h:
|
$(OBJ): config.h
|
||||||
cp config.def.h config.h
|
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
$(CC) $(CFLAGS) -c $< -o $@
|
$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
|
config.h:
|
||||||
|
cp config.def.h config.h
|
||||||
|
|
||||||
minrss: $(OBJ)
|
minrss: $(OBJ)
|
||||||
$(CC) -o $@ $(OBJ) $(LIBS)
|
$(CC) -o $@ $(OBJ) $(LIBS)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user