How Can I get started?

To be honest,After I have browered the Quick preMake Guide on page.I get a little confusing.And I have got a executable file. What I have are VC6 and VS2002 project(cpp & h file).I want to generate prj file in VS2008 or Windows 64 bit platform.
I have a test on WinXp cmd.exe. For instance,typed "premake4 --help" or like.But directly type "make clean" doesn't work.
So I really confusing How the preMake work? It need what? what kind of input or input-file it needed?How can I get started ?
The webside info is a not very concrete.and not sufficent.
Can do me a favor or some instance .especially the complete steps and Procedure,principle!
(if you can give some additional materials,I will be grateful.To 740176597@qq.com)
Thanks!

Hi,

To use Premake, you need to write file "premake4.lua", describing your project. You can find more info here:

http://industriousone.com/scripting-premake

Please read all tutorial section carefully, and then come back if you still have any problems. Thank you for choosing Premake!

P.S. Looking at your nick and your message, I thought you're a spambot at first :)

I have read all tutorial section carefully,Now if I have a premake4.lua file in a project folder.And my Os is WinXp Sp3.And I have put the premake4.exe executable in "C:\WINDOWS\system32".
AS I have said :" What I have are VC6 and VS2002 project(cpp & h file).I want to generate prj file in VS2008 or Windows 64 bit platform" .Now How can I let it work?what's procedure?

OK. Than you should open command line window, navigate to your project folder, and run

premake4 --platform=x64 vs2008

It will generate solution and project files for Visual Studio.

Got it!Thank for helpful reply!

I have put a premake.lua file on dir "C:\123" folder.I use WinXP Sp3.
The current dir is "C:\Document and Setting\jzq"
When input in cmd line: "premake4 --scripts=c:\123 vs2002" It's prompt "No premake script Found!"
My version is 4.3.
Another question : When I need many optoins ,e.g "--platform=x64 --os=windows" How can i input?
(The Tutorials need more instances for novice)
regards

And How can I get a patch or fix to support for vc6.Mostly I need use VC6,but I only Have vs2008 prj file.
How can I get it?
Thanks!

>When input in cmd line: "premake4 --scripts=c:\123 vs2002" It's prompt "No premake script Found!"

You should use "--file" option instead of "--scripts", e.g.

premake4 --file=c:\123\premake4.lua vs2002

>Another question : When I need many optoins ,e.g "--platform=x64 --os=windows" How can i input?

You can specify as many command line options as you wish at once:

premake4 --file=c:\123\premake4.lua --platform=x64 --os=windows vs2002

(BTW, on Windows --os=windows is assumed by default)

>And How can I get a patch or fix to support for vc6.

IIRC Premake 3 supported VC6, so you can forward-port that code to Premake 4.

There is a VC6 patch here. Probably out of date, but might help you get started.

Thank for starkos's "a VC6 patch"I download it already.But I don't know How to use it!
I have got a binary premake4.exe,But Now I need the vc6 prj.So I download the premake-4.3 and premake-3.7 source code.
And I found the layout of them is quite different.
Along "IIRC Premake 3 supported VC6, so you can forward-port that code to Premake 4."Then I copy vc6.c,vs6.c and the like to the premake-4.3's src folder.But It doesn't work.
How can I modi the 4.3 version code or integrate the vs6 support to premake 4.3 code?
(the detail and steps are best)Thank you!
regards

And another question: I used binary premke3.exe version 3.7.The usage syntax is the same with premake-4.3?
And the premake4.lua can also be used on premke3.exe?Why I input "premake3 --file=C:\premake4.lua vs6 " always prompt "No premake scripts Found!"?
regards

>Thank for starkos's "a VC6 patch"I download it already.But I don't know How to use it!

1. Apply patch to Premake source code (use 4.3 release or stable branch).
2. Resolve trivial conflict in _manifest.lua
3. Build premake4.exe from sources according to instructions in User Guide.
4. ?????
5. PROFIT

"Apply patch to Premake source code (use 4.3 release or stable branch)."
I use WinXp. I don't know how to use *.patch file. could help me?

(1): I used binary premke3.exe version 3.7.The usage syntax is the same with premake-4.3?
And the premake4.lua can also be used on premke3.exe?Why I input "premake3 --file=C:\premake4.lua vs6 " always prompt "No premake scripts Found!"?
(2) 'starkos ="There is a VC6 patch" I have tried this.But failed.May need more help.
Now the next I want to read and be familiar with the source code Version 3.7.
regards

>The usage syntax is the same with premake-4.3?

No, they are incompatible.

>And the premake4.lua can also be used on premke3.exe?Why I input "premake3 --file=C:\premake4.lua vs6 " always prompt "No premake scripts Found!"?

I wouldn't expect premake3 to work with premake4.lua