commit ee72ebd042e395e8c646a14d26d60fb99a8faa90
parent b9cac3a190df07bcc0da7aa8318983f8e061f7c0
Author: lostd <lostd@2f30.org>
Date: Thu, 4 Jun 2015 23:03:57 +0100
Make config independent to avoid accidental overwrites
Diffstat:
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git 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 $< $@