[Top][All Lists]

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

sources target and pc-files

From: Mike Frysinger
Subject: sources target and pc-files
Date: Tue, 22 Nov 2011 11:16:46 -0500
User-agent: KMail/1.13.7 (Linux/3.1.1; KDE/4.6.5; x86_64; ; )

the misc/Makefile.in has sources depend on pc-files.  i can't see why this 
be needed.  could you clarify ?

the issue is that if you run:
        ./configure --enable-pc-files
        make sources
        make install
you get a build failure due to no .pc files being in misc/

this is because the misc/gen-pkgconfig script is run when processing the pc-
files target, and it only generates .pc files for libraries that have been 
compiled in ../lib/*.  since we haven't compiled anything yet, there is 
nothing in ../lib/, so no .pc files are created, and then the Makefile does 
"touch pc-files" to prevent running it again.

possible solutions:
 - don't have "sources" depend on "pc-files" (i don't see why it does now)
        - con: .pc files still don't get regenerated when $version or libs 
 - don't have the pc-files target `touch address@hidden
        - con: .pc files will always get refreshed (but maybe that's fine)
                - easy enough to add a `cmp` to the gen-pkgconfig to avoid this

i'm leaning towards the latter solution ...

Attachment: signature.asc
Description: This is a digitally signed message part.

reply via email to

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