[patch 23/39] create man1dir if it does not exist

Robert Schwebel <[email protected]> Sun, 04 Feb 2007 03:31:43 +0100
Newsgroups gmane.comp.gnu.dotgnu.developer
Message-ID <[email protected]>
We have to create $(DESTDIR)$(man1dir). On normal distributions it
should exist, but you cannot rely on that. If you for example only build
dotgnu for a cross platform it might happen that the $(DESTDIR) is empty
when we start building.

Signed-off-by: Robert Schwebel <[email protected]>

 ilasm/Makefile.am |    1 +
 1 file changed, 1 insertion(+)

Index: ilasm/Makefile.am
===================================================================
--- ilasm/Makefile.am.orig
+++ ilasm/Makefile.am
@@ -27,6 +27,7 @@ AM_CFLAGS = -I$(top_srcdir)/include
 
 install-data-local:
 	rm -f $(DESTDIR)$(man1dir)/al.1.gz
+	$(mkdir_p) $(DESTDIR)$(man1dir)
 	$(LN_S) ilasm.1.gz $(DESTDIR)$(man1dir)/al.1.gz
 
 uninstall-local:

--
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
     Hannoversche Str. 2, 31134 Hildesheim, Germany
   Phone: +49-5121-206917-0 |  Fax: +49-5121-206917-9