automake
[Top][All Lists]
Advanced

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

Re: Specifying dependencies difficulties


From: Angus Leeming
Subject: Re: Specifying dependencies difficulties
Date: Mon, 16 Jan 2006 18:29:26 +0000
User-agent: KNode/0.10

Angus Leeming wrote:
> ...Late press: I have a solution! Not sure how pretty this is, but it
> does work.

Actually, it *almost* works. "make distcheck" on a clean build tree fails
becase distcheck seems to ignore the subdirs order. If I "make" before I
"make distcheck" then distcheck succeeeds because "kconfig_compiler.exe"
and "squeeze.exe" exist and can be used.

Angus

>  SUBDIRS = kdelibs .
> 
>  # Have to remove these files from BUILT_SOURCES as otherwise they're
>  # the first thing that make tries to do.
>  BUILT_SOURCES = \
>         version.cpp \
> -       kvsprefs.cpp \
> -       kvsprefs.h \
> -       psheader.c \
> -       prefs.cpp \
> -       prefs.h \
>         $(nodist_qdvi_SOURCES) $(UIFILES:.ui=.moc)
> 
>  # Add 'em here, so that things get cleaned up.
>  DISTCLEANFILES += \
>         config.h \
> +       kvsprefs.cpp \
> +       kvsprefs.h \
> +       psheader.c \
> +       prefs.cpp \
> +       prefs.h \
>         stamp-version \
>         version.cpp-tmp \
>         $(BUILT_SOURCES)
> 
>  CONFIG_COMPILER =  kdelibs/kconfig_compiler$(EXEEXT)
>  bin_PROGRAMS = qdvi
>  noinst_PROGRAMS = squeeze
> 
>  qdvi_SOURCES = \
>         ... \
>         kvsprefs.cpp \
>         kvsprefs.h \
>         ... \
>         prefs.cpp \
>         prefs.h \
>         ...
> 
>  # Make the objects depend explicitly on the generated files.
>  # Triggers there generation using the rules below.
> +$(qdvi_OBJECTS): kvsprefs.cpp kvsprefs.h prefs.cpp prefs.h psheader.c
> +
> +kvsprefs.h: kvsprefs.cpp
> 
> kvsprefs.cpp: kviewshell.kcfg kvsprefs.kcfgc
>         $(CONFIG_COMPILER) $(srcdir)/kviewshell.kcfg
>         $(srcdir)/kvsprefs.kcfgc
> 
> +prefs.h: prefs.cpp
> +
>  prefs.cpp: kdvi.kcfg prefs.kcfgc
>         $(CONFIG_COMPILER) $(srcdir)/kdvi.kcfg $(srcdir)/prefs.kcfgc
> 
>  squeeze_SOURCES = squeeze.c
> 
>  psheader.c: psheader.txt squeeze$(EXEEXT)
>         ./squeeze$(EXEEXT) $(srcdir)/psheader.txt $@






reply via email to

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