| version 1.3, 2005/03/28 16:08:39 |
version 1.4, 2005/04/21 13:49:23 |
|
|
| ## 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.2 2003/12/15 12:54:02 rajo Exp $ |
## $Platon: doc/diplomova-praca-rajo/Rules.make,v 1.3 2005/03/28 16:08:39 rajo Exp $ |
| ## |
## |
| |
|
| ## |
## |
| Line 98 OUTPUT_third = $(ps__OUTPUT_third) |
|
| Line 98 OUTPUT_third = $(ps__OUTPUT_third) |
|
| ## With variables $(ps__OUTPUT) and $(pdf_OUTPUT) you can customize, |
## With variables $(ps__OUTPUT) and $(pdf_OUTPUT) you can customize, |
| ## which type of output you will create. |
## which type of output you will create. |
| ## |
## |
| ifdef ps__OUTPUT |
ifdef ps__OUTPUT # {{{ |
| |
ifdef PREFIX |
| |
all: all-subdirs $(DEPEND) $(AUTOGENERATED_FILES) ps-subdir ps-prefixed-output |
| |
else |
| all: all-subdirs $(DEPEND) $(AUTOGENERATED_FILES) ps-subdir |
all: all-subdirs $(DEPEND) $(AUTOGENERATED_FILES) ps-subdir |
| endif |
endif # ifdef PREFIX |
| |
endif # }}} ifdef ps__OUTPUT |
| |
|
| ifdef pdf_OUTPUT |
ifdef pdf_OUTPUT # {{{ |
| |
ifdef PREFIX |
| |
all: all-subdirs $(DEPEND) $(AUTOGENERATED_FILES) pdf-subdir pdf-prefixed-output |
| |
else |
| all: all-subdirs $(DEPEND) $(AUTOGENERATED_FILES) pdf-subdir |
all: all-subdirs $(DEPEND) $(AUTOGENERATED_FILES) pdf-subdir |
| |
endif # ifdef PREFIX |
| |
|
| ifdef ps__OUTPUT |
ifdef ps__OUTPUT # {{{ |
| all: all-subdirs $(DEPEND) $(AUTOGENERATED_FILES) ps-subdir pdf-subdir |
ifdef PREFIX |
| endif |
all: ps-subdir pdf-subdir ps-prefixed-output pdf-prefixed-output |
| |
@echo 'PREFIX = "$(PREFIX)"' |
| |
else |
| |
all: ps-subdir pdf-subdir |
| |
endif # ifdef PREFIX |
| |
endif # }}} ifdef ps__OUTPUT |
| |
|
| |
endif # }}} ifdef pdf_OUTPUT |
| |
|
| endif |
|
| ## end of taget `all' |
## end of taget `all' |
| |
|
| ifdef COLORIZE_SHELL_CMDS |
ifdef COLORIZE_SHELL_CMDS |
| Line 145 PostScript: $(ps__OUTPUT_first) $(ps__OU |
|
| Line 159 PostScript: $(ps__OUTPUT_first) $(ps__OU |
|
| |
|
| PDF: $(pdf_OUTPUT_first) $(pdf_OUTPUT) |
PDF: $(pdf_OUTPUT_first) $(pdf_OUTPUT) |
| |
|
| |
ifdef PREFIX # {{{ |
| |
ps-prefixed-output: |
| |
@-for file in $(ps__OUTPUT); do \ |
| |
echo "ln -f 'PostScript/$$file' '$(PREFIX)-$$file'"; \ |
| |
ln -f "PostScript/$$file" "$(PREFIX)-$$file" \ |
| |
|| cp -f "PostScript/$$file $(PREFIX)"; \ |
| |
done |
| |
|
| |
pdf-prefixed-output: |
| |
@-for file in $(pdf_OUTPUT); do \ |
| |
echo "ln -f 'PDF/$$file' '$(PREFIX)-$$file'"; \ |
| |
ln -f "PDF/$$file" "$(PREFIX)-$$file" \ |
| |
|| cp -f "PDF/$$file $(PREFIX)"; \ |
| |
done |
| |
endif # }}} ifdef PREFIX |
| |
|
| # AUTOGENERATED_FILES: -- images |
# AUTOGENERATED_FILES: -- images |
| $(IMAGES_DIR)/%.eps: $(IMAGES_DIR)/%.gpi |
$(IMAGES_DIR)/%.eps: $(IMAGES_DIR)/%.gpi |
| @$(COLOR_COMMANDS) |
@$(COLOR_COMMANDS) |