Live data from Hacker News

Time for Makefiles to Make a Comeback

medium.com

1–10 of 116 posts

Re: Time for Makefiles to Make a Comeback

#2
I'm confused

So its agreeable that the building pipeline of NPM calling some packer does replace any-other-language calling any-other-packer, but what is the point in replacing the role of `npm build`, with a makefile that just calls what npm would of called anyways?

replacing make with npm with make-calling-npm?

Re: Time for Makefiles to Make a Comeback

#5
post #3

I used to be big fan of using Makefile for web development, but have since changed my mind, because make is not very good fit for watch-mode incremental building.

The data model of makefiles is perfect for watching and rebuilding. All you need to add is something that monitors the source files for any changes and runs 'make'.

Re: Time for Makefiles to Make a Comeback

#6
post #3

I used to be big fan of using Makefile for web development, but have since changed my mind, because make is not very good fit for watch-mode incremental building.

The data model of makefiles is perfect for watching and rebuilding. All you need to add is something that monitors the source files for any changes and runs 'make'.

That sounds like a great idea. Does anything like that exist already?

Re: Time for Makefiles to Make a Comeback

#7
post #6

Earlier quoted context omitted.

The data model of makefiles is perfect for watching and rebuilding. All you need to add is something that monitors the source files for any changes and runs 'make'.

That sounds like a great idea. Does anything like that exist already?

something along the lines of inotify:

http://man7.org/linux/man-pages/man1/inotifywait.1.html

or just use tup

http://gittup.org/tup/

Re: Time for Makefiles to Make a Comeback

#8
post #6

Earlier quoted context omitted.

The data model of makefiles is perfect for watching and rebuilding. All you need to add is something that monitors the source files for any changes and runs 'make'.

That sounds like a great idea. Does anything like that exist already?

It's trivial to roll your own: https://github.com/gall0ws/watch

Re: Time for Makefiles to Make a Comeback

#9

I'm confused So its agreeable that the building pipeline of NPM calling some packer does replace any-other-language calling any-other-packer, but what is the point in replacing the role of `npm build`, with a makefile that just calls what npm would of called anyways? replacing make with npm with make-calling-npm?

I haven't done something similar with npm but I did write make files to call specific commands. For example a particularly long activate function very specific to internal tooling. Doing this makes sense for such commands and not for primitives.

Re: Time for Makefiles to Make a Comeback

#10
post #6

Earlier quoted context omitted.

The data model of makefiles is perfect for watching and rebuilding. All you need to add is something that monitors the source files for any changes and runs 'make'.

That sounds like a great idea. Does anything like that exist already?

Also, entr

http://entrproject.org

Post reply on HN