]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/Makefile
webcit-ng makefile now handles changes to webcit.h properly
[citadel.git] / webcit-ng / Makefile
index 7b9e2c299bcd192d8eed07845f6cb8b99caf8d1d..8c8e317fe952a4d9d156aa8d22846686b628be50 100644 (file)
@@ -4,12 +4,16 @@ LDFLAGS := $(LDFLAGS)
 SRC := server
 OBJ := server
 
+HEADERS := $(wildcard $(SRC)/*.h)
 SOURCES := $(wildcard $(SRC)/*.c)
 OBJECTS := $(patsubst $(SRC)/%.c, $(OBJ)/%.o, $(SOURCES))
 
 webcit: $(OBJECTS)
        gcc $(CFLAGS) $(OBJECTS) $(LDFLAGS) -lcitadel -lpthread -lcrypto -lssl -lexpat -o webcit
 
+$(SRC)/%.c: $(HEADERS)
+       touch $@
+
 $(OBJ)/%.o: $(SRC)/%.c
        gcc $(CFLAGS) -I$(SRC) -c $< -o $@