Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.misc > #2142

Re: Using Make for workflow control

From despen@verizon.net (Dan.Espen)
Newsgroups comp.misc
Subject Re: Using Make for workflow control
Date 2014-03-30 13:39 -0400
Organization A noiseless patient Spider
Message-ID <ick3bby49u.fsf@home.home> (permalink)
References <lh99me$fsm$1@solani.org>

Show all headers | View raw


RS Wood <rsw@therandymon.com> writes:

> Interesting article, linked to from Hacker News, about using Make for
> workflows that don't necessarily involve building binaries or libraries.
>
> http://bost.ocks.org/mike/make/
>
> I'll have to look into it - seems like a lot of work to learn, but
> potentially worth it.  Automation of processes is good for sanity.

Preaching to the choir.  Make has all kinds of uses.
Here's a simple Makefile for uploading to a web site:


UP_SITE:=mywebsite.net
uploads:=$(wildcard $.html) $(wildcard *.png)

targets:=$(addsuffix .uploaded,$(uploads))

all: $(targets)

define install_html
(\
echo -e "binary\n"\
 "put $(subst .uploaded,,$@)\n"\
 "close\n"\
 "quit\n"\
 ) | ftp $(UP_SITE)
endef

%.uploaded: %
	$(install_html)
	echo "`date`" > $@

clean:
	rm *.uploaded

-- 
Dan Espen

Back to comp.misc | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Using Make for workflow control RS Wood <rsw@therandymon.com> - 2014-03-30 14:28 +0000
  Re: Using Make for workflow control despen@verizon.net (Dan.Espen) - 2014-03-30 13:39 -0400
  Re: Using Make for workflow control Rich <rich@example.com> - 2014-03-30 21:54 +0000
  Re: Using Make for workflow control Huge <Huge@nowhere.much.invalid> - 2014-03-31 08:40 +0000
  Re: Using Make for workflow control scott@alfter.diespammersdie.us (Scott Alfter) - 2014-03-31 17:43 +0000
  Re: Using Make for workflow control Theo Markettos <theom+news@chiark.greenend.org.uk> - 2014-04-01 23:40 +0100
    Re: Using Make for workflow control despen@verizon.net (Dan.Espen) - 2014-04-01 20:00 -0400

csiph-web