slib-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Slib-discuss] mkdir in the Makefile


From: Marijn Schouten (hkBst)
Subject: [Slib-discuss] mkdir in the Makefile
Date: Wed, 06 Jun 2007 16:32:52 +0200
User-agent: Thunderbird 2.0.0.0 (X11/20070419)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I have some comments about the Makefile in version 3a4. It seems to do a lot
of assuming of existence of the directories stored in the variables prefix et
al. I'm currently using
prefix = /var/tmp/portage/dev-scheme/slib-3.1.4-r2/image//usr/
because there is no DESTDIR observance. I need the following patch to make
"make infoz" work:


- --- Makefile.old        2007-06-02 13:35:00.000000000 +0200
+++ Makefile    2007-06-02 13:39:41.000000000 +0200
@@ -259,6 +259,7 @@
 info:  installinfo
 installinfo:   $(infodir)slib.info
 $(infodir)slib.info:   slib.info
+       mkdir -p $(infodir)
        cp -p slib.info $(infodir)slib.info
        -install-info $(infodir)slib.info $(infodir)dir
        -rm $(infodir)slib.info.gz


It is possible to make other things fail by choosing non-pre-existing
directories for other variables. To remedy that I propose to run a

sed 's_mkdir_mkdir -p_g' -i Makefile
sed 's_-p -p_-p_g' -i Makefile

over the Makefile.

Marijn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGZsWUp/VmCx0OL2wRAi3/AJ9cTzIagr3iUbgnOQJnydsS3xrR7QCgh55n
Mb3FHyELntwovj2sAEEzTEg=
=HjcX
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]