commit 99049775470534449276acee4968f8481faa2d30
parent b276217359c244a3c3d36fa81b014eddec1d0318
Author: lostd <lostd@2f30.org>
Date: Thu, 4 Jun 2015 23:04:45 +0100
Make config independent to avoid accidental overwrites
Diffstat:
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/Makefile b/Makefile
@@ -15,6 +15,9 @@ $(BIN): $(OBJ)
nausea.o: config.h
+config.h:
+ cp config.def.h $@
+
install: all
mkdir -p $(DESTDIR)$(PREFIX)/bin
cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin
@@ -27,8 +30,3 @@ uninstall:
clean:
rm -f $(BIN) $(OBJ)
-
-.SUFFIXES: .def.h
-
-.def.h.h:
- cp $< $@