Re: [dev] automating running and building

2016-01-07 Thread Louis Santillan
Build & execute by simply typing `make` ``` SRC = dummy.c OBJ = $(SRC:.c=.o) EXE = dummy all: $(EXE) @./$(EXE) .c.o: $(CC) -c $(CFLAGS) $< $(EXE): $(OBJ) $(CC) -o $(EXE) $(OBJ) $(LDFLAGS) ``` On Thu, Jan 7, 2016 at 7:08 PM, Greg Reagle wrote: > On Thu, Jan 07, 2016 at

Re: [dev] Auto-preview man pages

2016-01-07 Thread Greg Reagle
On Fri, Jan 08, 2016 at 06:42:21AM +0200, Adrian Grigore wrote: > On Fri, Jan 8, 2016 at 5:05 AM, Greg Reagle wrote: > > echo Readme.md | entr sh -c 'markdown Readme.md | w3m -T text/html' > > > > Still not ideal, because you have to quit from w3m manually. If you use > > -dump with w3m you don

Re: [dev] Auto-preview man pages

2016-01-07 Thread Adrian Grigore
On Fri, Jan 8, 2016 at 5:05 AM, Greg Reagle wrote: > echo Readme.md | entr sh -c 'markdown Readme.md | w3m -T text/html' > > Still not ideal, because you have to quit from w3m manually. If you use > -dump with w3m you don't have to quit, but you lose formatting and other > goodies. > This is

Re: [dev] automating running and building

2016-01-07 Thread Leander S. Harding
On Thu, Jan 7, 2016 at 7:23 PM, Greg Reagle wrote: > On Fri, Jan 08, 2016 at 12:53:26AM +0100, hiro wrote: >> are you asking how to compile "make program; program" into a C program? ... > But this is all very ad-hoc and takes a lot of manual intervention and it > would be nice to make it more syst

Re: [dev] Auto-preview man pages

2016-01-07 Thread Greg Reagle
On Thu, Jan 07, 2016 at 09:20:06PM +0100, Roberto E. Vargas Caballero wrote: > On Thu, Jan 07, 2016 at 01:56:13PM -0500, Greg Reagle wrote: > > I find it a real pain to work with things like man page source and markdown > > source and so forth because of the extra steps of making the output/object

Re: [dev] automating running and building

2016-01-07 Thread Greg Reagle
On Fri, Jan 08, 2016 at 12:53:26AM +0100, hiro wrote: > are you asking how to compile "make program; program" into a C program? Hi Hiro. I don't know whether you are being serious or joking but that gives me an idea which might be a solution. Let's say that it is the cal program that I want to b

Re: [dev] automating running and building

2016-01-07 Thread Greg Reagle
On Thu, Jan 07, 2016 at 05:22:38PM -0800, Louis Santillan wrote: > Do mean something like this in a makefile? Essentially adding a > `./$@` to end of `dwm` target: I tried it and it does not seem to be a solution. If dwm is up to date, Make won't run the recipe and ./$@ won't be run. So you hav

Re: [dev] Auto-preview man pages

2016-01-07 Thread Greg Reagle
On Fri, Jan 08, 2016 at 12:31:34AM +0200, Adrian Grigore wrote: > On Thu, Jan 7, 2016 at 8:56 PM, Greg Reagle wrote: > > I find it a real pain to work with things like man page source and markdown > > source and so forth because of the extra steps of making the output/object > > format. > > I hav

Re: [dev] Auto-preview man pages

2016-01-07 Thread Greg Reagle
On Thu, Jan 07, 2016 at 01:56:13PM -0500, Greg Reagle wrote: > Here is what I figured out using entr: I run > ls address.yaml | entr make address.pdf > which means I don't have to type make, and I run > ls address.pdf | entr -r mupdf /_ > which means I don't have to type mupdf. > > Actually,

Re: [dev] automating running and building

2016-01-07 Thread Louis Santillan
Do mean something like this in a makefile? Essentially adding a `./$@` to end of `dwm` target: ``` SRC = drw.c dwm.c util.c OBJ = ${SRC:.c=.o} all: dwm .c.o: @echo CC $< @${CC} -c ${CFLAGS} $< ${OBJ}: config.h config.mk dwm: ${OBJ} @echo CC -o $@ @${CC} -o $@ ${OBJ} ${LDFLAGS}

Re: [dev] Auto-preview man pages

2016-01-07 Thread Greg Reagle
On Fri, Jan 08, 2016 at 12:50:14AM +0100, hiro wrote: > i don't need preview any more. i just write the content and expect it > to show up right. Perhaps one day I will reach your level of enlightenment. :>

Re: [dev] automating running and building

2016-01-07 Thread hiro
are you asking how to compile "make program; program" into a C program? On 1/7/16, Greg Reagle wrote: > In the same spirit as my previous post about automating with entr ... > > I would love to be able to have some way for running a compiled C > program that automatically runs make on the program

Re: [dev] Auto-preview man pages

2016-01-07 Thread hiro
i don't need preview any more. i just write the content and expect it to show up right.

Re: [dev] Auto-preview man pages

2016-01-07 Thread Adrian Grigore
On Thu, Jan 7, 2016 at 8:56 PM, Greg Reagle wrote: > I find it a real pain to work with things like man page source and markdown > source and so forth because of the extra steps of making the output/object > format. > I have yet to find a solution for markdown. I would really prefer something wit

Re: [dev] [farbfeld] version 1 release

2016-01-07 Thread Marcel Rodrigues
Last time I wanted to create some animations the API of both libvpx and ffmpeg looked so unfriendly (too much boilerplate required and too little documentation/examples provided) that I ended up writing a GIF encoder from scratch [0]. GIFs have some serious limitations, such as the 256 color limit

Re: [dev] Auto-preview man pages

2016-01-07 Thread Roberto E. Vargas Caballero
On Thu, Jan 07, 2016 at 01:56:13PM -0500, Greg Reagle wrote: > I find it a real pain to work with things like man page source and markdown > source and so forth because of the extra steps of making the output/object > format. > You can use something like [0], or use gv, which automatically reload

[dev] automating running and building

2016-01-07 Thread Greg Reagle
In the same spirit as my previous post about automating with entr ... I would love to be able to have some way for running a compiled C program that automatically runs make on the program before actually running the program. Of course I don't want all of my programs to work this way, but when