]> Sergey Matveev's repositories - nnn.git/commitdiff
Still use some of the implicit magic
authorlostd <lostd@2f30.org>
Tue, 21 Oct 2014 19:58:46 +0000 (22:58 +0300)
committerlostd <lostd@2f30.org>
Tue, 21 Oct 2014 19:58:46 +0000 (22:58 +0300)
Makefile

index 4146a77756f6c9eb30a277d28bfb3104419c1c85..5648b5726d13cd1e4dcc2d4052f5a845abef2c4a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,18 +7,11 @@ BIN = noice
 
 all: $(BIN)
 
-$(BIN): config.h $(OBJ)
+$(BIN): $(OBJ)
        $(CC) $(CFLAGS) -o $@ $(OBJ) $(LDLIBS)
 
-config.h:
-       @echo copying config.def.h to $@
-       @cp config.def.h $@
-
-noice.o: noice.c queue.h util.h
-       $(CC) $(CFLAGS) $(CPPFLAGS) -c noice.c
-
-strlcpy.o: strlcpy.c util.h
-       $(CC) $(CFLAGS) -c strlcpy.c
+noice.o: queue.h util.h config.h
+strlcpy.o: util.h
 
 install: all
        @echo installing $(BIN) to $(DESTDIR)$(PREFIX)/bin
@@ -32,3 +25,8 @@ uninstall:
 
 clean:
        rm -f $(BIN) $(OBJ)
+
+.SUFFIXES: .def.h
+
+.def.h.h:
+       cp $< $@