getshows/Makefile
Mike Small 5d32d69b2c Makefile: openbsd sed is fussy about i cmd
It wants i to be...
i\
text to insert

Decided to use a substitution instead of delete
and insert. Eventually figured out how to account
for both shell and Make's variable substitution and
quoting rules. I hate Unix today.

Test again on Slackware 14.2 asap.
2020-09-29 14:15:23 -04:00

24 lines
535 B
Makefile

frfac:
sed '1s@^.*$$@\#\!'$$(latest_perl)@ frfac.in > frfac
check:
`./latest_perl` -wc frfac.in
perlcritic frfac.in
if which ksh93 > /dev/null 2>&1; then \
ksh93 -n getviaphone; \
else \
ksh -n getviaphone; \
fi
install: frfac
sudo install -o root -g wheel -m 0755 -d /usr/local/bin
sudo install -o root -g wheel -m 0555 frfac /usr/local/bin
sudo install -o root -g wheel -m 0555 getviaphone /usr/local/bin
clean:
rm -f frfac
uninstall:
sudo rm -f /usr/local/bin/frfac
sudo rm -f /usr/local/bin/getviaphone