Blob Blame Raw
--- Makefile	2007-08-13 15:28:44.000000000 +0530
+++ Makefile.new	2008-02-02 19:16:40.000000000 +0530
@@ -42,25 +42,24 @@
 
 install: all
 	# Create directories
-	mkdir -p $(SHAREDIR)
-	
+	mkdir -p $(SHAREDIR) $(BINDIR) $(PIXMAPSDIR) $(MAN1DIR)
+
 	# Install files
-	install -m 755 xhotkeys.py $(BINDIR)/xhotkeys
-	install -m 644 xhotkeys.glade $(SHAREDIR)
-	install -m 644 xhotkeys.1 $(MAN1DIR)
-	install -m 644 xhotkeys.desktop $(APPDIR) || true
-	install -m 755 xhotkeys.png $(SHAREDIR)
-	install -m 755 getdclick $(SHAREDIR)
+	install -p -m 755 xhotkeys.py $(BINDIR)/xhotkeys
+	install -p -m 644 xhotkeys.glade $(SHAREDIR)
+	install -p -m 644 xhotkeys.1 $(MAN1DIR)
+	install -p -m 755 xhotkeys.png $(SHAREDIR)
+	install -p -m 755 getdclick $(SHAREDIR)
 
 	# Install example configuration file
-	install -m 644 xhotkeys.conf $(SHAREDIR)/xhotkeys.conf.example
+	install -p -m 644 xhotkeys.conf $(SHAREDIR)/xhotkeys.conf.example
 	
 	# Install icons
 	for ICON in $(ICONS); do \
 		mkdir -p $(ICONSDIR)/$$ICON/apps ;\
-		install -m 644 icons/$$ICON/xhotkeys.png $(ICONSDIR)/$$ICON/apps ;\
+		install -p -m 644 icons/$$ICON/xhotkeys.png $(ICONSDIR)/$$ICON/apps ;\
 	done
-	install -m 644 icons/xhotkeys.xpm $(PIXMAPSDIR) ;\
+	install -p -m 644 icons/xhotkeys.xpm $(PIXMAPSDIR) ;\
 
 clean:
 	rm -rf *.pyc icons *.gladep