version 1.2, 2003/12/15 12:54:02 |
version 1.3, 2005/03/28 16:08:39 |
|
|
## Licensed under terms of GNU General Public License. |
## Licensed under terms of GNU General Public License. |
## All rights reserved. |
## All rights reserved. |
## |
## |
## $Platon: doc/diplomova-praca-rajo/Rules.make,v 1.1 2003/07/24 17:50:07 rajo Exp $ |
## $Platon: doc/diplomova-praca-rajo/Rules.make,v 1.2 2003/12/15 12:54:02 rajo Exp $ |
## |
## |
|
|
## |
## |
|
|
|
|
## Distribution {{{ |
## Distribution {{{ |
dist: distdir |
dist: distdir |
|
@echo; |
|
@echo "Please, run command 'make' before 'make dist'" |
|
@echo; |
@$(COLOR_COMMANDS) |
@$(COLOR_COMMANDS) |
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) |
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) |
@#BZIP=$(GZIP_ENV) $(TAR) chojf $(distdir).tar.bz2 $(distdir) |
@#BZIP=$(GZIP_ENV) $(TAR) chojf $(distdir).tar.bz2 $(distdir) |
-rm -rf $(distdir) |
-rm -rf $(distdir) |
@#-@banner="md5sum is: `md5sum $(distdir).tar.gz |tee md5sum.$(distdir)`"; \ |
@-@banner="md5sum is: `md5sum $(distdir).tar.gz |tee md5sum.$(distdir)`"; \ |
dashes=`echo "$$banner" | sed s/./=/g`; \ |
dashes=`echo "$$banner" | sed s/./=/g`; \ |
echo "$$dashes"; \ |
echo "$$dashes"; \ |
echo "$$banner"; \ |
echo "$$banner"; \ |
Line 353 distdir: $(DISTFILES) |
|
Line 356 distdir: $(DISTFILES) |
|
top_distdir=`cd $(distdir) && pwd`; \ |
top_distdir=`cd $(distdir) && pwd`; \ |
distdir=`cd $(distdir) && pwd`; \ |
distdir=`cd $(distdir) && pwd`; \ |
umask 022; \ |
umask 022; \ |
for file in $(DISTFILES); do \ |
for file in $(GENERATED_DISTFILES) $(DISTFILES); do \ |
d=$(srcdir); \ |
d=$(srcdir); \ |
if test -d $$d/$$file; then \ |
if test -d $$d/$$file; then \ |
mkdir $(distdir)/$$file; \ |
mkdir $(distdir)/$$file; \ |
else \ |
else \ |
test -f $(distdir)/$$file \ |
if test -f $(distdir)/$$file; then \ |
|| ln $$d/$$file $(distdir)/$$file \ |
ln $$d/$$file $(distdir)/$$file \ |
|| cp $$d/$$file $(distdir)/$$file || :; \ |
|| cp $$d/$$file $(distdir)/$$file || :; \ |
|
else \ |
|
ln `realpath $$d/$$file` $(distdir)/$$file || :; \ |
|
fi; \ |
fi; \ |
fi; \ |
done |
done |
@$(END_COLOR_COMMANDS) |
@$(END_COLOR_COMMANDS) |