From d5353ebc24af32af9a3b0d2540fd707b7be3d042 Mon Sep 17 00:00:00 2001
From: Antonio Ospite <ospite@studenti.unina.it>
Date: Tue, 19 Nov 2013 14:57:50 +0100
Subject: [PATCH 1/1] Makefile: fix directory creation

Also use lower case for path variables, this mimics somehow how
autotools does it.
---
 Makefile | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/Makefile b/Makefile
index 66607ac..6854d76 100644
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,16 @@
-PREFIX     ?= /usr
-SYSCONFDIR ?= /etc
+prefix     ?= /usr
+sysconfdir ?= /etc
 
 all:
+clean:
 
 install:
-	echo ${DESTDIR}
-	install -m 0755 -d $(DESTDIR)$(PREFIX)/lib/kboot/
-	install -m 0644 kboot-mkconfig_lib $(DESTDIR)$(PREFIX)/lib/kboot/kboot-mkconfig_lib
-	install -m 0755 kboot-mkconfig $(DESTDIR)$(PREFIX)/sbin/kboot-mkconfig
-	install -m 0644 default.kboot $(DESTDIR)$(SYSCONFDIR)/default/kboot
+	install -d $(DESTDIR)$(prefix)/lib/kboot/
+	install -m 0644 kboot-mkconfig_lib $(DESTDIR)$(prefix)/lib/kboot/kboot-mkconfig_lib
+	install -d $(DESTDIR)$(prefix)/sbin
+	install -m 0755 kboot-mkconfig $(DESTDIR)$(prefix)/sbin/kboot-mkconfig
+	install -d $(DESTDIR)$(sysconfdir)/default
+	install -m 0644 default.kboot $(DESTDIR)$(sysconfdir)/default/kboot
 
 changelog:
 	git log --pretty="format:%ai  %aN  <%aE>%n%n%x09* %s%d%n" > ChangeLog
-- 
2.1.4