Re: [PATCH 1/2] Fix make dist relating to xmlconf conditional

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

 



On 01/06/2012 06:06 PM, Steven Dake wrote:
> On 01/06/2012 09:29 AM, Fabio M. Di Nitto wrote:
>> On 01/06/2012 04:52 PM, Steven Dake wrote:
>>> On 01/06/2012 07:39 AM, Fabio M. Di Nitto wrote:
>>>> On 1/6/2012 3:19 PM, Steven Dake wrote:
>>>>> On 01/06/2012 03:12 AM, Jan Friesse wrote:
>>>>>> Steve,
>>>>>> I was trying this way too, but it has problem, that after build, make
>>>>>> clean doesn't clean corosync-xmlproc.
>>>>>>
>>>>>> Honza
>>>>>
>>>>> Ok.
>>>>>
>>>>> Well I'd rather make dist work then make clean.  Wihout make dist we
>>>>> can't do any tarball releases.  Perhaps we can file a bug for make clean
>>>>> not totally working properly.
>>>>>
>>>>> Regards
>>>>> -steve
>>>>>
>>>>>>
>>>>>> Steven Dake napsal(a):
>>>>>>> Signed-off-by: Steven Dake <sdake@xxxxxxxxxx>
>>>>>>> ---
>>>>>>>  tools/Makefile.am |    6 +++---
>>>>>>>  1 files changed, 3 insertions(+), 3 deletions(-)
>>>>>>>
>>>>>>> diff --git a/tools/Makefile.am b/tools/Makefile.am
>>>>>>> index 3089150..614b24e 100644
>>>>>>> --- a/tools/Makefile.am
>>>>>>> +++ b/tools/Makefile.am
>>>>>>> @@ -41,13 +41,13 @@ sbin_PROGRAMS        = corosync-fplay
>>>>>>> corosync-cfgtool \
>>>>>>>  bin_SCRIPTS        = corosync-blackbox
>>>>>>>  
>>>>>>>  if INSTALL_XMLCONF
>>>>>>> -bin_PROGRAMS        = corosync-xmlproc
>>>>>>> +bin_SCRIPTS        += corosync-xmlproc
>>>>
>>>
>>> The makefile converts corosync-xmlproc into corosync-xmlproc.sh
>>>
>>>> ^^^^^^ here
>>>>
>>>>>>> +endif
>>>>>>>  
>>>>>>>  corosync-xmlproc: corosync-xmlproc.sh
>>>>>>>      sed -e 's#@''DATADIR@#${datadir}#g' $< > $@
>>>>>>> -endif
>>>>>>>  
>>>>>>> -EXTRA_DIST        = $(bin_SCRIPTS) corosync-notifyd.sysconfig.example
>>>>>>> +EXTRA_DIST        = $(bin_SCRIPTS) corosync-xmlproc.sh
>>>>
>>>
>>> notice the extension (.sh)
>>>
>>> Without including it in the distribution, the tarball will not build.
>>> These are two separate files.
>>
>> The problem is that you are including both corosync-xmlproc and
>> corosync-xmlproc.sh in EXTRA_DIST
>>
> 
> Yes, but when put in bin instead of scripts, it complains about a c file
> missing...

Try the one attached and it will do both make dist and make clean.

See also how I changed EXTRA_DIST to not include bin_SCRIPTS.

Sorry I couldn't mail directly, I am on my laptop and no full git setup.

Fabio
diff --git a/tools/Makefile.am b/tools/Makefile.am
index 3089150..bedadf5 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -38,16 +38,14 @@ sbin_PROGRAMS		= corosync-fplay corosync-cfgtool \
 			  corosync-pload corosync-cpgtool corosync-quorumtool \
 			  corosync-notifyd corosync-cmapctl
 
-bin_SCRIPTS		= corosync-blackbox
-
-if INSTALL_XMLCONF
-bin_PROGRAMS		= corosync-xmlproc
+bin_SCRIPTS		= corosync-blackbox corosync-xmlproc
 
 corosync-xmlproc: corosync-xmlproc.sh
 	sed -e 's#@''DATADIR@#${datadir}#g' $< > $@
-endif
 
-EXTRA_DIST		= $(bin_SCRIPTS) corosync-notifyd.sysconfig.example
+EXTRA_DIST		= corosync-blackbox \
+			  corosync-xmlproc.sh \
+			  corosync-notifyd.sysconfig.example
 
 corosync_fplay_LDADD	= $(LIBQB_LIBS)
 corosync_pload_LDADD	= -lpload $(LIBQB_LIBS)
@@ -73,3 +71,5 @@ lint:
 	-splint $(LINT_FLAGS) $(DBUS_CFLAGS) $(INCLUDES) $(CFLAGS) *.c
 
 
+clean-local:
+	rm -f corosync-xmlproc
_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss

[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux