aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar lostd <lostd@2f30.org>2015-06-04 23:03:57 +0100
committerGravatar lostd <lostd@2f30.org>2015-06-04 23:03:57 +0100
commitee72ebd042e395e8c646a14d26d60fb99a8faa90 (patch)
tree4f10cc82c371cab4d102b9d069a1fc7429842c29 /Makefile
parentb9cac3a190df07bcc0da7aa8318983f8e061f7c0 (diff)
downloadnnn-ee72ebd042e395e8c646a14d26d60fb99a8faa90.tar.gz
Make config independent to avoid accidental overwrites
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 3c96ba1..ea06b2d 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 $< $@