2013-02-15 21:33:55 +01:00
|
|
|
#!/bin/sh
|
|
|
|
# vi:set filetype=makefile
|
|
|
|
NULL=0 exec make "CALL=$0" "EXE=`which $0`" -f "`which $0`" -- "$@"
|
2013-02-06 13:50:11 +01:00
|
|
|
|
|
|
|
D := /
|
|
|
|
PREFIX := /usr/local
|
|
|
|
BIN_PREFIX := $(PREFIX)/bin
|
|
|
|
|
|
|
|
all: truckle
|
|
|
|
@echo 'Nothing to do :)'
|
2013-02-15 21:33:55 +01:00
|
|
|
@echo 'Please run "make install" to install.'
|
2013-02-06 13:50:11 +01:00
|
|
|
|
|
|
|
install: truckle
|
2013-02-16 16:15:09 +01:00
|
|
|
mkdir -p $(D)$(BIN_PREFIX)
|
2013-02-06 13:50:11 +01:00
|
|
|
install -m 0755 truckle $(D)$(BIN_PREFIX)/truckle
|
|
|
|
for c in `./truckle --list-commands`; do ln -fs truckle $(D)$(BIN_PREFIX)/truckle-$${c} ; done
|
2013-02-17 14:58:58 +01:00
|
|
|
for c in trdo tresume tretry; do ln -fs truckle $(D)$(BIN_PREFIX)/$${c} ; done
|
2013-02-16 15:39:57 +01:00
|
|
|
|
|
|
|
README.md: truckle README.pre.md
|
|
|
|
( cat README.pre.md ; ./truckle --help ) > README.md.tmp
|
|
|
|
mv README.md.tmp README.md
|
|
|
|
|
|
|
|
release: README.md
|