Re: Phobos posix.mak -> D file using reggae: round 2

2016-06-29 Thread Atila Neves via Digitalmars-d
On Monday, 18 April 2016 at 15:15:26 UTC, Atila Neves wrote: Here's[1] another attempt at converting the Makefile for POSIX systems to D using reggae[2]. I first tried my hand at writing a parser for Makefiles using Pegged and machine translating to D. I learned a lot about parsing and GNU make

Re: Phobos posix.mak -> D file using reggae: round 2

2016-04-23 Thread Atila Neves via Digitalmars-d
On Friday, 22 April 2016 at 17:00:21 UTC, Piotrek wrote: On Monday, 18 April 2016 at 15:15:26 UTC, Atila Neves wrote: Here's[1] another attempt at converting the Makefile for POSIX systems to D using reggae[2]. ... Destroy! Atila I know you your intention was to keep it similar to makefile,

Re: Phobos posix.mak -> D file using reggae: round 2

2016-04-22 Thread Piotrek via Digitalmars-d
On Monday, 18 April 2016 at 15:15:26 UTC, Atila Neves wrote: Here's[1] another attempt at converting the Makefile for POSIX systems to D using reggae[2]. ... Destroy! Atila I know you your intention was to keep it similar to makefile, but for me it looks unnecessarily complex. What whould

Re: Phobos posix.mak -> D file using reggae: round 2

2016-04-19 Thread Marco Leise via Digitalmars-d
Am Tue, 19 Apr 2016 17:02:43 + schrieb Atila Neves : > > DC_FLAGS=-O5 (flags for that compiler) > > LDFLAGS=-L=-O1 (flags for the linker) > > PREFIX=/usr (installation prefix) > > These I need to add. Well, if there's enough of a use-case anyway. It's just normal on Gentoo, to be able t

Re: Phobos posix.mak -> D file using reggae: round 2

2016-04-19 Thread Atila Neves via Digitalmars-d
On Monday, 18 April 2016 at 23:17:39 UTC, Marco Leise wrote: Am Mon, 18 Apr 2016 15:15:26 + schrieb Atila Neves : Just remember that makefiles are well integrated with other systems (i.e. package managers) and there are some conventions, about what certain environment variables mean. To na

Re: Phobos posix.mak -> D file using reggae: round 2

2016-04-18 Thread Marco Leise via Digitalmars-d
Am Mon, 18 Apr 2016 15:15:26 + schrieb Atila Neves : Just remember that makefiles are well integrated with other systems (i.e. package managers) and there are some conventions, about what certain environment variables mean. To name a few: MAKEOPTS=-j4 (parallel build with N processes) DC=/op

Re: Phobos posix.mak -> D file using reggae: round 2

2016-04-18 Thread Jack Stouffer via Digitalmars-d
On Monday, 18 April 2016 at 15:15:26 UTC, Atila Neves wrote: Here's[1] another attempt at converting the Makefile for POSIX systems to D using reggae[2]. Great work! This transition cannot happen soon enough. Maintaining the make files is a huge pain and something always falls through the cra

Phobos posix.mak -> D file using reggae: round 2

2016-04-18 Thread Atila Neves via Digitalmars-d
Here's[1] another attempt at converting the Makefile for POSIX systems to D using reggae[2]. I first tried my hand at writing a parser for Makefiles using Pegged and machine translating to D. I learned a lot about parsing and GNU make in the process and also that: 1. It was about two orders o