| version 1.29, 2005/07/06 22:34:25 |
version 1.30, 2005/07/07 15:32:45 |
|
|
| # Licensed under terms of GNU General Public License. |
# Licensed under terms of GNU General Public License. |
| # All rights reserved. |
# All rights reserved. |
| # |
# |
| # $Platon: platos/_templates/Rules.make,v 1.28 2005/07/06 22:23:23 rajo Exp $ |
# $Platon: platos/_templates/Rules.make,v 1.29 2005/07/06 22:34:25 rajo Exp $ |
| # |
# |
| |
|
| ps__OUTPUT = $(shell sed 's/\#.*$$//g;' ps__OUTPUT 2>/dev/null) |
ps__OUTPUT = $(shell sed 's/\#.*$$//g;' ps__OUTPUT 2>/dev/null) |
|
|
| # }}} |
# }}} |
| |
|
| # Distribution {{{ |
# Distribution {{{ |
| |
|
| |
ifneq ($(strip $(SUBDIRS)),) |
| |
|
| |
subdir-copy-distfile = $(sort $(patsubst %,_subdir_copy_distfile_%,$(SUBDIRS))) |
| |
|
| |
export DISTFILE_DEST |
| |
$(subdir-copy-distfile) : dummy |
| |
@if [ -d "$(patsubst _subdir_copy_distfile_%,%,$@)" ]; then \ |
| |
echo -en "[32;1mCopying distfile from directory [35;1m'$(patsubst _subdir_copy_distfile_%,%,$@)'[0m"; echo; \ |
| |
$(MAKE) -C $(patsubst _subdir_copy_distfile_%,%,$@) copy-distfile; \ |
| |
echo -en "[32;1mCopying distfile from directory [35;1m'$(patsubst _subdir_copy_distfile_%,%,$@)'[32;1m done.[0m"; echo; \ |
| |
else \ |
| |
echo -en "[31;1mSkipping nonexistent directory [35;1m'$(patsubst _subdir_copy_distfile_%,%,$@)'[0m"; echo; \ |
| |
fi |
| |
|
| |
endif |
| |
|
| |
|
| ifneq ($(strip $(DISTFILES)),) |
ifneq ($(strip $(DISTFILES)),) |
| |
|
| $(distdir).tar.gz: dist |
$(distdir).tar.gz: dist |
| Line 586 distdir: $(DISTFILES) |
|
| Line 604 distdir: $(DISTFILES) |
|
| fi; \ |
fi; \ |
| done |
done |
| |
|
| |
ifneq ($(strip $(SUBDIRS)),) |
| |
copy-distfile: subdir-copy-distfile $(distdir).tar.gz |
| |
endif |
| copy-distfile: $(distdir).tar.gz |
copy-distfile: $(distdir).tar.gz |
| @if [ ! -z "$$DISTFILE_DEST" ]; then \ |
@if [ ! -z "$$DISTFILE_DEST" ]; then \ |
| ln $(distdir).tar.gz "$$DISTFILE_DEST" \ |
ln $(distdir).tar.gz "$$DISTFILE_DEST" \ |
| Line 593 copy-distfile: $(distdir).tar.gz |
|
| Line 614 copy-distfile: $(distdir).tar.gz |
|
| else \ |
else \ |
| echo '$$DISTFILE_DEST is not set, ignoring target $@'; \ |
echo '$$DISTFILE_DEST is not set, ignoring target $@'; \ |
| fi |
fi |
| |
|
| |
else # ifneq ($(strip $(DISTFILES)),) |
| |
|
| |
$(distdir).tar.gz: |
| |
dist: |
| |
distdir: |
| |
ifneq ($(strip $(SUBDIRS)),) |
| |
copy-distfile: dummy $(subdir-copy-distfile) |
| |
else |
| |
copy-distfile: |
| |
endif |
| |
|
| endif |
endif |
| |
|
| # }}} |
# }}} |
| |
|
| # vim: ts=4 isk+=- ft=make |
# vim: ts=4 isk+=- ft=make |