]> Sergey Matveev's repositories - nnn.git/commitdiff
Make config independent to avoid accidental overwrites
authorlostd <lostd@2f30.org>
Thu, 4 Jun 2015 22:03:57 +0000 (23:03 +0100)
committerlostd <lostd@2f30.org>
Thu, 4 Jun 2015 22:03:57 +0000 (23:03 +0100)
Makefile

index 3c96ba1994b8818fd02c42a62b9d6d17e4d2d13f..ea06b2d1a285ec84e80d07baf67b1cfda8787b6e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -21,6 +21,9 @@ noice.o: util.h config.h
 strlcat.o: util.h
 strlcpy.o: util.h
 
+config.h:
+       cp config.def.h $@
+
 install: all
        mkdir -p $(DESTDIR)$(PREFIX)/bin
        cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin
@@ -40,8 +43,3 @@ dist:
 
 clean:
        rm -f $(BIN) $(OBJ) noice-$(VERSION).tar.gz
-
-.SUFFIXES: .def.h
-
-.def.h.h:
-       cp $< $@