]> Pileus Git - lackey/blobdiff - makefile
Add args and usage output
[lackey] / makefile
index 8d76a502be0b0c945af808a4297822e30668bf61..f50f07445b9229007b7df637a2df4241953d08a8 100644 (file)
--- a/makefile
+++ b/makefile
@@ -16,7 +16,7 @@ LDFLAGS   ?= -lncursesw -lical
 
 # Sources
 PROG      ?= lackey
-PROG_SRC  ?= main view date cal conf util
+PROG_SRC  ?= main view date cal args conf util
 TEST      ?= test
 TEST_SRC  ?= test date cal conf util
 VIEWS     ?= day week month year events todo settings help edit
@@ -57,7 +57,7 @@ $(PROG): $(PROG_SRC:%=src/%.o) $(VIEWS:%=views/%.o) $(CALS:%=cals/%.o)
 $(TEST): $(TEST_SRC:%=src/%.o) $(CALS:%=cals/%.o)
        $(GCC) $(CFLAGS) -o $@ $+ $(LDFLAGS)
 
-%.o: %.c $(wildcard src/*.h) makefile
+%.o: %.c $(wildcard src/*.h makefile config.mk)
        $(GCC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
 
 .PHONY: all clean dist install uninstall