cplay
annotate Makefile @ 3:07e746bdb6bb
Added tag 1.49-meillo for changeset c7d8ec7da73b
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Wed, 27 Sep 2017 09:37:03 +0200 |
parents | |
children |
rev | line source |
---|---|
meillo@0 | 1 PREFIX = /usr/local |
meillo@0 | 2 ENV = PREFIX=$(PREFIX) |
meillo@0 | 3 |
meillo@0 | 4 SUBDIRS = po |
meillo@0 | 5 |
meillo@0 | 6 all: recursive-all |
meillo@0 | 7 |
meillo@0 | 8 install: recursive-install |
meillo@0 | 9 install -c -m 755 cplay $(PREFIX)/bin |
meillo@0 | 10 install -c -m 644 cplay.1 $(PREFIX)/man/man1 |
meillo@0 | 11 |
meillo@0 | 12 clean: recursive-clean |
meillo@0 | 13 |
meillo@0 | 14 recursive-all recursive-install recursive-clean: |
meillo@0 | 15 @target=$@; \ |
meillo@0 | 16 for i in $(SUBDIRS); do \ |
meillo@0 | 17 (cd $$i && make $(ENV) $${target#recursive-}); \ |
meillo@0 | 18 done |
meillo@0 | 19 |
meillo@0 | 20 cplayrc: cplay |
meillo@0 | 21 awk '/^PLAYERS/ {p=1} /^$$/ {p=0} {if (p==1) {print}}' cplay > cplayrc |