From: Francis Giraldeau Date: Thu, 10 May 2012 15:53:20 +0000 (-0400) Subject: Add makefile target for preprocessor X-Git-Tag: v2.1.0-rc1~23 X-Git-Url: http://git.lttng.org/?p=lttng-modules.git;a=commitdiff_plain;h=23e6a44f127a046d02dbe8e9895cc2baf0d57c7d Add makefile target for preprocessor By specifying .i target, it runs gcc preprocessor for that file. Example: make myfile.i will read myfile.c and output preprocessor to myfile.i Signed-off-by: Mathieu Desnoyers --- diff --git a/Makefile b/Makefile index dfa0792b..d06e6764 100644 --- a/Makefile +++ b/Makefile @@ -55,4 +55,6 @@ modules_install: clean: $(MAKE) -C $(KERNELDIR) M=$(PWD) clean +%.i: %.c + $(MAKE) -C $(KERNELDIR) M=$(PWD) $@ endif