Custom make rules #1707
-
Hi, premake5 gmake2 is there a way to add a custom rule which can later be invoked by saying make {something} |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
No, that's not supported. The custom build rules are more like "when see files of type X, here are the build steps to apply to them", and are intended for things like shaders and DSLs. It sounds like you're asking for something more like a custom makefile target, which you can actually inject into your generated makefiles using Does that help? |
Beta Was this translation helpful? Give feedback.
-
Have you opened up the generated makefile and tried to investigate the issue at line 34? You probably shouldn't be defining an
|
Beta Was this translation helpful? Give feedback.
-
I have a test directory which contains a test.cpp file and I wanted to define a premake configuration such that the generated makefile make test and will then compile the test.cpp file. Thats why I was thinking of adding a custom target test. what should I do in this case ? |
Beta Was this translation helpful? Give feedback.
No, that's not supported. The custom build rules are more like "when see files of type X, here are the build steps to apply to them", and are intended for things like shaders and DSLs. It sounds like you're asking for something more like a custom makefile target, which you can actually inject into your generated makefiles using
makesettings()
.Does that help?