view mk/script.mk @ 20:675b7dd62bba

I just thought of another thing for the future list.
author David A. Holland
date Tue, 04 Sep 2012 01:49:01 -0400
parents 5f36d8d69aba
children 813a27f32072
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:
	$(INSTALL) -c $(PROG) $(DESTDIR)$(PREFIX)/$(BINDIR)/$(PROG)

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

.PHONY: all depend install clean distclean