From ee72ebd042e395e8c646a14d26d60fb99a8faa90 Mon Sep 17 00:00:00 2001 From: lostd Date: Thu, 4 Jun 2015 23:03:57 +0100 Subject: [PATCH] Make config independent to avoid accidental overwrites --- Makefile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 3c96ba19..ea06b2d1 100644 --- 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 $< $@