From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ramsay Jones Subject: [PATCH 1/2] Makefile: Add a target to generate C preprocessor output files Date: Thu, 03 Dec 2009 18:11:57 +0000 Message-ID: <4B17FF6D.1000908@ramsay1.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Marius Storm-Olsen , Johannes Sixt , GIT Mailing-list To: Junio C Hamano X-From: git-owner@vger.kernel.org Thu Dec 03 19:59:14 2009 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1NGGtW-0008PC-9K for gcvg-git-2@lo.gmane.org; Thu, 03 Dec 2009 19:59:14 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756526AbZLCS7A (ORCPT ); Thu, 3 Dec 2009 13:59:00 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756502AbZLCS7A (ORCPT ); Thu, 3 Dec 2009 13:59:00 -0500 Received: from anchor-post-2.mail.demon.net ([195.173.77.133]:34929 "EHLO anchor-post-2.mail.demon.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756501AbZLCS7A (ORCPT ); Thu, 3 Dec 2009 13:59:00 -0500 Received: from ramsay1.demon.co.uk ([193.237.126.196]) by anchor-post-2.mail.demon.net with esmtp (Exim 4.69) id 1NGGtN-0006MD-lO; Thu, 03 Dec 2009 18:59:06 +0000 User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Signed-off-by: Ramsay Jones --- Whilst fixing an msvc compiler warning (see patch #2), I needed to look at the output of the c-preprocessor; maybe other people will find it useful. ATB, Ramsay Jones Makefile | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index 1092589..6c9e8a8 100644 --- a/Makefile +++ b/Makefile @@ -1527,6 +1527,8 @@ git.o git.spec \ $(patsubst %.perl,%,$(SCRIPT_PERL)) \ : GIT-VERSION-FILE +%.i: %.c .ALWAYS + $(QUIET_CC)$(CC) -E $(ALL_CFLAGS) $< >$*.i %.o: %.c GIT-CFLAGS $(QUIET_CC)$(CC) -o $*.o -c $(ALL_CFLAGS) $< %.s: %.c GIT-CFLAGS @@ -1863,7 +1865,7 @@ endif .PHONY: all install clean strip .PHONY: shell_compatibility_test please_set_SHELL_PATH_to_a_more_modern_shell .PHONY: .FORCE-GIT-VERSION-FILE TAGS tags cscope .FORCE-GIT-CFLAGS -.PHONY: .FORCE-GIT-BUILD-OPTIONS +.PHONY: .FORCE-GIT-BUILD-OPTIONS .ALWAYS ### Check documentation # -- 1.6.5