From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58801) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpE7f-0006e7-LH for qemu-devel@nongnu.org; Mon, 04 May 2015 07:01:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YpE7c-0006Xv-EM for qemu-devel@nongnu.org; Mon, 04 May 2015 07:01:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46933) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpE7c-0006Xl-8k for qemu-devel@nongnu.org; Mon, 04 May 2015 07:01:12 -0400 Date: Mon, 4 May 2015 13:01:02 +0200 From: Thomas Huth Message-ID: <20150504130102.2b796406@thh440s> In-Reply-To: <554723FF.70406@gmail.com> References: <554723FF.70406@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] .gitignore contains .c and .h ? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Guillaume Le =?UTF-8?B?TG91w6t0?= Cc: qemu-devel@nongnu.org On Mon, 04 May 2015 09:47:11 +0200 Guillaume Le Lou=C3=ABt wrote: > Hello. >=20 > The .gitignore in the master branch contains the following lines : > /qapi-types.[ch] > /qapi-visit.[ch] > /qapi-event.[ch] >=20 > Why is it so ? Are they generated automatically each time I compile the=20 > project ? > I am modifying qapi-types.h and qapi-types.c , am I doing wrong ? Yes, they are created automatically and you should not edit them manually. Just have a look at the main Makefile: qapi-modules =3D $(SRC_PATH)/qapi-schema.json $(SRC_PATH)/qapi/common.json \ $(SRC_PATH)/qapi/block.json $(SRC_PATH)/qapi/block-core.json= \ $(SRC_PATH)/qapi/event.json qapi-types.c qapi-types.h :\ $(qapi-modules) $(SRC_PATH)/scripts/qapi-types.py $(qapi-py) $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-types.py \ $(gen-out-type) -o "." -b -i $<, \ " GEN $@") So if you want to change something in this area, you likely have to touch the *.json files instead. Thomas