Closed bioinfornatics closed 10 years ago
@kyllingstad ping
Thanks for pinging me. (I wish GitHub would send me an e-mail when someone opens a pull request...)
Let me start off by saying that I have a strong dislike for makefiles. That said, this one of the more well-written I have seen. :-) Nice work, thanks!
The plan is, and has always been, to either (1) improve the current build system, or (2) use another D build system. However, I still haven't gotten around to doing (1), and so far the community doesn't seem to have settled on anything for (2) (though DUB seems to be sailing up as a strong contender). I understand that there is a need for something better than the current build.d
, so I will add your makefile, but please be warned that it may be a temporary solution, and that it will be replaced if/when a good D build system comes along.
Which compiler/platform combinations have you tested this with?
I see that you have added Windows support. Which make variant is it for – the one bundled with DMC?
gl3n project use this makefile and some others D project gdc ldc and dmd works fine. This makefile allow to me to puth scid into official fedora repo whereas dub do not allow this. Because dub install file in non standard path. dub is a good tool for users but not for packagers.
The filter variable for your projct is useless. Some project like tango have some scial file which need to be build for a specific OS. And usually d file are put into a package where name corresponding to OS.
project/
├── freebsd
│ └── module.d
├── linux
│ └── module.d
└── windows
└── module.d
Like this you are able to import somewhere the right module to given OS.
version( freebsd ) import project.freebsd.module;
version( linux ) import project.linux.module;
version( windows ) import project.windows.module;
This was put mainly for tango(2)
The platform less tested is windows
@kyllingstad these files come from the project https://github.com/bioinfornatics/MakefileForD This allow to me to put easily D project into fedora repo. I wait this pull request to finnish scid packaging https://bugzilla.redhat.com/show_bug.cgi?id=865371
Merged. And let me say that I think it is awesome that you're trying to get SciD into the Fedora repos. :-) Thanks!
A Powerful way to build and install scid
Example:
General use
Parallel
Here we used 4 thread
Setting a compiler
Setting install directory
Setting DFLAGS
Unittest
I do not see how you use unitest To use it with make should to be something close to:
Building as shared lib
Default build as static lib to get a shared lib use
all-shared
target