[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Need help: How to set .RECIPEP REFIX variable to white spaces
From: |
Kumar Mehta |
Subject: |
Need help: How to set .RECIPEP REFIX variable to white spaces |
Date: |
Sun, 24 Jul 2011 23:58:29 -0700 (PDT) |
Hi,
How to set .RECIPEPREFIX variable to whitespace(say 4 whitespces) , so that
make uses this particular set of characters to identify the recipe for a
particular target.
In my $HOME/.vimrc file, for code indentation purpose, I've put the
following entries to replace tabs with 4 whitespaces:
<<<snip from my $HOME/.vimrc file>>>
"replace tabs with spaces
set expandtab
set shiftwidth=4
set tabstop=4
<<<snip from my $HOME/.vimrc file>>>
but the above will cause problem in case you write your own makefile for a
kernel module,
because now the tab stroke will be replaced by 4 whitespaces which 'make'
will not understand. Quoting from 'make' manual,
"Please note: you need to put a tab character at the beginning of every
recipe line!"
Seems .RECIPEPREFIX will come for resuce, but as of now I don't know how to
use it to fix my problem.
Regards,
Amit
--
View this message in context:
http://old.nabble.com/Need-help%3A-How-to-set-.RECIPEPRE%E2%80%8BFIX-variable-to-white-spaces-tp32129377p32129377.html
Sent from the Gnu - Make - Help mailing list archive at Nabble.com.
- Need help: How to set .RECIPEP REFIX variable to white spaces,
Kumar Mehta <=