A small shell script to be used with binfmt_misc to start either dosbox or wine, depending on the output of the file command.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

31 lines
615 B

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: