From kde-core-devel Sun Sep 21 22:45:20 2003 From: Dominique Devriese Date: Sun, 21 Sep 2003 22:45:20 +0000 To: kde-core-devel Subject: Re: Conditional data files X-MARC-Message: https://marc.info/?l=kde-core-devel&m=106418444218495 David Faure writes: > koffice/kexi/data/Makefile.am says if compile_qsa_plugin > scripthandler = kexiscripthandler.desktop scriptrc = > kexiscriptpartui.rc endif > and uses $(scriptrc) and $(scripthandler) in foo_DATA lines. > Is this supposed to work? (This is both a question for automake > experts and for the unsermake developers :) Yes, check the automake info pages on Automake Conditionals ( look for the AM_CONDITIONAL autoconf macro.. ).. > Obviously if I'm writing this mail, it's because it doesn't > work..... > Unsermake: make: *** No rule to make target > `/mnt/devel/kde/kdecvs/koffice/kexi/data/kexiscriptpartui.rc', > needed by `all-am-top_kexi_data'. Stop. > Automake: make: *** No rule to make target `kexiscriptpartui.rc', > needed by `all-am'. Stop. > Solutions? I can only think of the "move to a conditional subdir" > solution. How about making sure the kexiscriptpartui.rc file is present if it is used in the build process ? cvs annotate seems to tell me that Jaroslaw Staniek is the person to blaim for this... cheers domi