| version 1.32, 2005/09/18 01:38:20 |
version 1.33, 2005/09/18 10:27:26 |
|
|
| # Licensed under terms of GNU General Public License. |
# Licensed under terms of GNU General Public License. |
| # All rights reserved. |
# All rights reserved. |
| # |
# |
| # $Platon: Platon.SK/office/_templates/Rules.make,v 1.31 2005/09/18 00:57:56 rajo Exp $ |
# $Platon: platos/_templates/Rules.make,v 1.32 2005/09/18 01:38:20 rajo Exp $ |
| # |
# |
| |
|
| ps__OUTPUT = $(shell sed 's/\#.*$$//g;' ps__OUTPUT 2>/dev/null) |
ps__OUTPUT = $(shell sed 's/\#.*$$//g;' ps__OUTPUT 2>/dev/null) |
|
|
| |
|
| # }}} |
# }}} |
| |
|
| |
# |
| |
# Terminal colors definition |
| |
# {{{ |
| |
|
| |
RESET = [0m |
| |
BOLD = [1m |
| |
UNDERLINE = [4m |
| |
BELL = |
| |
BLACK = [30;1m |
| |
RED = [31;1m |
| |
GREEN = [32;1m |
| |
YELLOW = [33;1m |
| |
BLUE = [34;1m |
| |
MAGENTA = [35;1m |
| |
CYAN = [36m |
| |
WHITE = [37;1m |
| |
# BOMB!!! Let's fun :-) |
| |
BOMB = [?7h)0
[0m |
| |
|
| |
export RESET |
| |
export BOLD |
| |
export UNDERLINE |
| |
export BELL |
| |
export BLACK |
| |
export RED |
| |
export GREEN |
| |
export YELLOW |
| |
export BLUE |
| |
export MAGENTA |
| |
export CYAN |
| |
export WHITE |
| |
export BOMB |
| |
|
| |
# }}} |
| |
|
| DEPEND_all = Makefile \ |
DEPEND_all = Makefile \ |
| $(STYLESHEET_FILES) \ |
$(STYLESHEET_FILES) \ |
| $(IMAGES) \ |
$(IMAGES) \ |
|
|
| |
|
| ps-subdir: |
ps-subdir: |
| -@$(BUILD_STRUCT) "PostScript" LATEX "$(strip $(LATEX))" \ |
-@$(BUILD_STRUCT) "PostScript" LATEX "$(strip $(LATEX))" \ |
| && $(MAKE) TOP_DIR=$(TOP_DIR)/.. -C PostScript PostScript |
&& $(MAKE) TOP_DIR=$(TOP_DIR)/.. -C PostScript PostScript ; echo -e "$(BLUE)Building of $(MAGENTA)PostScript$(BLUE) done.$(RESET)" |
| |
|
| pdf-subdir: |
pdf-subdir: |
| -@$(BUILD_STRUCT) "PDF" PDFLATEX "$(strip $(PDFLATEX))" \ |
-@$(BUILD_STRUCT) "PDF" PDFLATEX "$(strip $(PDFLATEX))" \ |
| && $(MAKE) TOP_DIR=$(TOP_DIR)/.. -C PDF PDF |
&& $(MAKE) TOP_DIR=$(TOP_DIR)/.. -C PDF PDF ; echo -e "$(BLUE)Building of $(MAGENTA)PDF$(BLUE) done.$(RESET)" |
| |
|
| html-subdir: |
html-subdir: |
| -@$(BUILD_STRUCT) "HTML" LATEX2HTML "$(strip $(LATEX2HTML))" \ |
-@$(BUILD_STRUCT) "HTML" LATEX2HTML "$(strip $(LATEX2HTML))" \ |
| && $(MAKE) TOP_DIR=$(TOP_DIR)/.. -C HTML HTML |
&& $(MAKE) TOP_DIR=$(TOP_DIR)/.. -C HTML HTML ; echo -e "$(BLUE)Building of $(MAGENTA)HTML$(BLUE) done.$(RESET)" |
| |
|
| rtf-subdir: |
rtf-subdir: |
| -@$(BUILD_STRUCT) "RTF" LATEX2RTF "$(strip $(LATEX2RTF))" \ |
-@$(BUILD_STRUCT) "RTF" LATEX2RTF "$(strip $(LATEX2RTF))" \ |
| && $(MAKE) TOP_DIR=$(TOP_DIR)/.. -C RTF RTF |
&& $(MAKE) TOP_DIR=$(TOP_DIR)/.. -C RTF RTF ; echo -e "$(BLUE)Building of $(MAGENTA)RTF$(BLUE) done.$(RESET)" |
| |
|
| |
|
| PostScript: $(ps__OUTPUT_first) $(ps__OUTPUT_second) $(ps__OUTPUT_third) $(DVI_ps__OUTPUT) $(ps__OUTPUT) |
PostScript: $(ps__OUTPUT_first) $(ps__OUTPUT_second) $(ps__OUTPUT_third) $(DVI_ps__OUTPUT) $(ps__OUTPUT) |
| Line 451 doc-subdirs: dummy $(subdir-list-doc) |
|
| Line 486 doc-subdirs: dummy $(subdir-list-doc) |
|
| |
|
| $(subdir-list-doc) : dummy |
$(subdir-list-doc) : dummy |
| @if [ -d "$(patsubst _subdir_doc_%,%,$@)" ]; then \ |
@if [ -d "$(patsubst _subdir_doc_%,%,$@)" ]; then \ |
| echo -en "[32;1mMaking documents in directory [35;1m'$(patsubst _subdir_doc_%,%,$@)'[0m"; echo; \ |
echo -e "$(GREEN)Making documents in directory $(MAGENTA)'$(patsubst _subdir_doc_%,%,$@)'$(RESET)"; \ |
| $(MAKE) -C $(patsubst _subdir_doc_%,%,$@) doc; \ |
$(MAKE) -C $(patsubst _subdir_doc_%,%,$@) doc; \ |
| echo -en "[32;1mMake in directory [35;1m'$(patsubst _subdir_doc_%,%,$@)'[32;1m done.[0m"; echo; \ |
echo -e "$(GREEN)Make in directory $(MAGENTA)'$(patsubst _subdir_doc_%,%,$@)'$(GREEN) done.$(RESET)"; \ |
| else \ |
else \ |
| echo -en "[31;1mSkipping nonexistent directory [35;1m'$(patsubst _subdir_doc_%,%,$@)'[0m"; echo; \ |
echo -e "$(RED)Skipping nonexistent directory $(MAGENTA)'$(patsubst _subdir_doc_%,%,$@)'$(RESET)"; \ |
| fi |
fi |
| |
|
| |
|
| Line 481 clean-subdirs: dummy $(subdir-list-clean |
|
| Line 516 clean-subdirs: dummy $(subdir-list-clean |
|
| |
|
| $(subdir-list-clean) : dummy |
$(subdir-list-clean) : dummy |
| @if [ -d "$(patsubst _subdir_clean_%,%,$@)" ]; then \ |
@if [ -d "$(patsubst _subdir_clean_%,%,$@)" ]; then \ |
| echo -en "[32;1mCleaning documents in directory [35;1m'$(patsubst _subdir_clean_%,%,$@)'[0m"; echo; \ |
echo -e "$(GREEN)Cleaning documents in directory $(MAGENTA)'$(patsubst _subdir_clean_%,%,$@)'$(RESET)"; \ |
| $(MAKE) -C $(patsubst _subdir_clean_%,%,$@) clean; \ |
$(MAKE) -C $(patsubst _subdir_clean_%,%,$@) clean; \ |
| echo -en "[32;1mClean in directory [35;1m'$(patsubst _subdir_clean_%,%,$@)'[32;1m done.[0m"; echo; \ |
echo -e "$(GREEN)Clean in directory $(MAGENTA)'$(patsubst _subdir_clean_%,%,$@)'$(GREEN) done.$(RESET)"; \ |
| else \ |
else \ |
| echo -en "[31;1mSkipping nonexistent directory [35;1m'$(patsubst _subdir_clean_%,%,$@)'[0m"; echo; \ |
echo -e "$(RED)Skipping nonexistent directory $(MAGENTA)'$(patsubst _subdir_clean_%,%,$@)'$(RESET)"; \ |
| fi |
fi |
| |
|
| else |
else |
|
|
| done; \ |
done; \ |
| done; \ |
done; \ |
| filelist="`echo $$file_list | awk -v RS=' ' '{print}' | sort -u | awk -v ORS=' ' '{print}'`"; \ |
filelist="`echo $$file_list | awk -v RS=' ' '{print}' | sort -u | awk -v ORS=' ' '{print}'`"; \ |
| echo -en "[36mDeleting extensions `echo $$asdf{.aux,.brf,.log,.lof,.lot,.out,.toc,.dvi,.ps,.pdf} `[0m"; echo; \ |
echo -e "$(CYAN)Deleting extensions `echo $$asdf{.aux,.brf,.log,.lof,.lot,.out,.toc,.dvi,.ps,.pdf} `$(RESET)"; \ |
| echo "rm -f $$filelist"; \ |
echo "rm -f $$filelist"; \ |
| rm -f $$filelist; |
rm -f $$filelist; |
| else |
else |
| clean-tex-logs: |
clean-tex-logs: |
| @filelist="`ls *{.aux,.brf,.log,.lof,.lot,.out,.toc,.dvi,.ps,.pdf} 2>/dev/null`"; \ |
@filelist="`ls *{.aux,.brf,.log,.lof,.lot,.out,.toc,.dvi,.ps,.pdf} 2>/dev/null`"; \ |
| if [ ! -z "$$filelist" ]; then \ |
if [ ! -z "$$filelist" ]; then \ |
| echo -en "[36mDeleting files `echo $$asdf{.aux,.brf,.log,.lof,.lot,.out,.toc,.dvi,.ps,.pdf} `[0m"; echo; \ |
echo -e "$(CYAN)Deleting files `echo $$asdf{.aux,.brf,.log,.lof,.lot,.out,.toc,.dvi,.ps,.pdf} `$(RESET)"; \ |
| echo "rm -f $$filelist"; \ |
echo "rm -f $$filelist"; \ |
| rm -f $$filelist; \ |
rm -f $$filelist; \ |
| fi |
fi |
| Line 565 subdir-copy-distfile = $(sort $(patsubst |
|
| Line 600 subdir-copy-distfile = $(sort $(patsubst |
|
| export DISTFILE_DEST |
export DISTFILE_DEST |
| $(subdir-copy-distfile) : dummy |
$(subdir-copy-distfile) : dummy |
| @if [ -d "$(patsubst _subdir_copy_distfile_%,%,$@)" ]; then \ |
@if [ -d "$(patsubst _subdir_copy_distfile_%,%,$@)" ]; then \ |
| echo -en "[32;1mCopying distfile from directory [35;1m'$(patsubst _subdir_copy_distfile_%,%,$@)'[0m"; echo; \ |
echo -e "$(GREEN)Copying distfile from directory $(MAGENTA)'$(patsubst _subdir_copy_distfile_%,%,$@)'$(RESET)"; \ |
| $(MAKE) -C $(patsubst _subdir_copy_distfile_%,%,$@) copy-distfile; \ |
$(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; \ |
echo -e "$(GREEN)Copying distfile from directory $(MAGENTA)'$(patsubst _subdir_copy_distfile_%,%,$@)'$(GREEN) done.$(RESET)"; \ |
| else \ |
else \ |
| echo -en "[31;1mSkipping nonexistent directory [35;1m'$(patsubst _subdir_copy_distfile_%,%,$@)'[0m"; echo; \ |
echo -e "$(RED)Skipping nonexistent directory $(MAGENTA)'$(patsubst _subdir_copy_distfile_%,%,$@)'$(RESET)"; \ |
| fi |
fi |
| |
|
| endif |
endif |