Makefile
615 Bytes
PREFIX ?= /usr
DESTDIR ?=
export PREFIX DESTDIR
PROGRAM = exelaunch.sh
DIST_FILES = $(PROGRAM) \
Makefile \
README.md \
LICENSE \
VERSION \
AUTHORS
.PHONY: all clean install doc dist
all:
dist: ARCHIVE_NAME = $(basename $(PROGRAM))-`cat VERSION`
dist: clean $(DIST_FILES)
tar cvf - --xform="s/^/$(ARCHIVE_NAME)\//" $(DIST_FILES) | \
bzip2 -9 -c >$(ARCHIVE_NAME).tar.bz2
install_$(PROGRAM): INST_PATH = $(DESTDIR)/$(PREFIX)/bin/$(PROGRAM)
install_$(PROGRAM):
@+install -D "$(PROGRAM)" \
"$(abspath $(DESTDIR)/$(PREFIX)/bin/$(PROGRAM))"
install: install_$(PROGRAM)
clean: