view mk/script.mk @ 31:12a4c9f88510

accidentally left "organization" out of usermail
author David A. Holland
date Mon, 27 May 2013 23:15:55 -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