view mk/script.mk @ 41:81851564f552

The initial description, how_to_repeat, and fix go in the first message. Storing them separately only creates a pile of special cases.
author David A. Holland
date Sun, 15 Jun 2014 17:55:56 -0400
parents 813a27f32072
children
line wrap: on
line source

.SUFFIXES: .py .pl .sh

PROG=$(SCRIPT:R)$(BINSUFFIX)

all: $(PROG)

$(PROG): $(SCRIPT)
	$(SED) -f $(TOP)/config.sed < $(SCRIPT) > $@.new
	mv -f $@.new $@

depend: ;

install:
	[ -d $(DESTDIR)$(PREFIX)/$(BINDIR) ] || \
		mkdir -p $(DESTDIR)$(PREFIX)/$(BINDIR)
	$(INSTALL) -c $(PROG) $(DESTDIR)$(PREFIX)/$(BINDIR)/$(PROG)

clean distclean:
	rm -f $(PROG) $(PROG).new

.PHONY: all depend install clean distclean