On Fri, September 30, 2011 13:48, Florian Fainelli wrote:
> Hello,
>
> On Monday 29 August 2011 22:09:35 [email protected] wrote:
>> From: "Eugene San (eugenesan)" <[email protected]>
>>
>>
>> Signed-off-by: Eugene San (eugenesan) <[email protected]>
>> ---
>>  net/rsync/Makefile |   26 +++++++++++++-------------
>>  1 files changed, 13 insertions(+), 13 deletions(-)
>>
>> diff --git a/net/rsync/Makefile b/net/rsync/Makefile
>> index 46670e5..f6d8eb1 100644
>> --- a/net/rsync/Makefile
>> +++ b/net/rsync/Makefile
>> @@ -21,20 +21,20 @@ PKG_BUILD_PARALLEL:=1
>>  include $(INCLUDE_DIR)/package.mk
>>
>>  define Package/rsync
>> -  SECTION:=net
>> -  CATEGORY:=Network
>> -  SUBMENU:=File Transfer
>> -  TITLE:=Fast remote file copy program (like rcp)
>> -  DEPENDS:=+libpopt
>> -  URL:=http://rsync.samba.org/
>> +    SECTION:=net
>> +    CATEGORY:=Network
>> +    SUBMENU:=File Transfer
>> +    TITLE:=Fast remote file copy program (like rcp)
>> +    DEPENDS:=+libpopt
>> +    URL:=http://rsync.samba.org/
>>  endef
>>
>>  define Package/rsyncd
>> -  SECTION:=net
>> -  CATEGORY:=Network
>> -  SUBMENU:=File Transfer
>> -  TITLE:=Rsync daemon
>> -  DEPENDS:=+rsync
>> +    SECTION:=net
>> +    CATEGORY:=Network
>> +    SUBMENU:=File Transfer
>> +    TITLE:=Rsync daemon
>> +    DEPENDS:=+rsync
>>  endef
>>
>>  define Package/rsync/description
>> @@ -54,7 +54,7 @@ CONFIGURE_ARGS += \
>>      --disable-debug \
>>      --disable-locale \
>>      --disable-xattr-support \
>> -    --disable-acl-support \
>> +    --disable-acl-support
>>
>>  define Package/rsync/install
>>      $(INSTALL_DIR) $(1)/usr/bin
>> @@ -68,7 +68,7 @@ define Package/rsyncd/description
>>  endef
>>
>>  define Package/rsyncd/conffiles
>> -/etc/rsyncd.conf
>> +    /etc/rsyncd.conf
>>  endef
>>
>>  define Package/rsyncd/install
>
> The prefered way of writing a Makefile is how it is right now. Inserting
> tabs
> instead of 2 spaces is not what we generally have.
>
> Florian

Actually it is totally wrong as a leading TAB means "this is a shell
command". And it doesn't break here as the calling code has leading
spaces.

Always remember: "In Makefiles leading tabs and spaces have special meaning."

Maddes


_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to