problem with Makefile files

Ask how to do things or if a certain feature is available in the program.
Post Reply
User avatar
DerellLicht1
Posts: 144
Joined: 23 Jul 2021 17:38
Location: Fremont, CA, USA

problem with Makefile files

Post by DerellLicht1 »

I use a version of the 'make' utility, which requires hard tabs (not spaces) on all indented lines...
I have the editor set to replace hard tabs with spaces, which I *want* in source files, but not in the Makefile ...

How do I set 'Makefile' (with no extension), and nothing else, to use hard tabs ??

//*****************************************************************************************
I tried Tools -> Configure Tools -> Editor -> Fonts and tabs
Selected language: makefiles
cleared "Tab inserts spaces"
set "Preserve tab characters"
Apply, save, reload file...

That did nothing, and I think I see why...
In Environment > Add-ons > Highlighters > %lang% > File extensions
There is no way to specify files without extensions, such as Makefile

Is there some way to apply rules to Makefile??

//*****************************************************************************************
Well, I found a hack that solves the problem; rename Makefile to Makefile.mak, edit the file, then rename back.
That works, but is hardly a generic solution...
User avatar
DerellLicht1
Posts: 144
Joined: 23 Jul 2021 17:38
Location: Fremont, CA, USA

Re: problem with Makefile files

Post by DerellLicht1 »

Bump ??

I guess what I'm really asking for, is a way to set options (hard tabs vs spaces, in this case) for files which have no extension...
Post Reply