--- img/Makefile.orig	2011-11-07 07:09:32.000000000 +0100
+++ img/Makefile	2011-11-23 11:15:40.000000000 +0100
@@ -13,7 +13,7 @@
 sinclude .depend
 
 install: xca-32x32.xpm
-	install -D -m 644 $^ $(destdir)$(prefix)/share/pixmaps/xca-32x32.xpm
+	install -d -m 755 $(destdir)$(prefix)/share/pixmaps && install -m 644 $^ $(destdir)$(prefix)/share/pixmaps/xca-32x32.xpm
 
 imgres.cpp: imgres.rcc
 	@$(PRINT) "  RCC    [$(BASENAME)] $@"
