Source

perl-begin / Makefile

shl...@13c2ddb8-… 7e45271 


shl...@13c2ddb8-… 1863802 
shl...@13c2ddb8-… 7e45271 
shl...@13c2ddb8-… 4bb900c 
Shlomi Fish 1b3dcd7 
shl...@13c2ddb8-… 7e45271 
shl...@13c2ddb8-… 3722129 
shl...@13c2ddb8-… f100a42 
shl...@13c2ddb8-… cb48c5b 

shl...@13c2ddb8-… 7e45271 
shl...@13c2ddb8-… dad983d 


shl...@13c2ddb8-… 6af9778 
shl...@13c2ddb8-… 7e45271 




Shlomi Fish 1b3dcd7 
shl...@13c2ddb8-… 4ba4d7e 
Shlomi Fish 46deb32 
Shlomi Fish 67596c4 
shl...@13c2ddb8-… 7e45271 
shl...@13c2ddb8-… 3722129 

shl...@13c2ddb8-… 6842c8c 
shl...@13c2ddb8-… 7e45271 
Shlomi Fish 1415cfe 
shl...@13c2ddb8-… 3ef59ff 
Shlomi Fish 1415cfe 



shl...@13c2ddb8-… caa109e 
shl...@13c2ddb8-… 3ef59ff 
Shlomi Fish 54713ba 

Shlomi Fish af7a4b8 
Shlomi Fish b31640a 
Shlomi Fish 54713ba 
shl...@13c2ddb8-… 9d81857 

shl...@13c2ddb8-… 04f8dd1 

shl...@13c2ddb8-… 7e45271 
shl...@13c2ddb8-… 8f951b5 


Shlomi Fish 46dd647 

shl...@13c2ddb8-… 7e45271 
shl...@13c2ddb8-… c5a4174 
shl...@13c2ddb8-… 7e45271 
shl...@13c2ddb8-… 8625892 
shl...@13c2ddb8-… 0ada611 
shl...@13c2ddb8-… 8625892 
shl...@13c2ddb8-… 7e45271 
shl...@13c2ddb8-… c5a4174 
shl...@13c2ddb8-… 7e45271 
shl...@13c2ddb8-… 6284c2a 
shl...@13c2ddb8-… 792cb99 
shl...@13c2ddb8-… 057f313 
Shlomi Fish 67b89ea 


Shlomi Fish c2f1713 
Shlomi Fish d525ac7 

Shlomi Fish c2f1713 
Shlomi Fish d525ac7 

shl...@13c2ddb8-… 7e45271 

shl...@13c2ddb8-… 6f8444f 
shl...@13c2ddb8-… c5a4174 
shl...@13c2ddb8-… 6f8444f 
shl...@13c2ddb8-… 057f313 




shl...@13c2ddb8-… cffca19 
shl...@13c2ddb8-… d2d1923 
shl...@13c2ddb8-… cffca19 


shl...@13c2ddb8-… d2d1923 

Shlomi Fish e431008 
shl...@13c2ddb8-… 6af9778 


Shlomi Fish e431008 
shl...@13c2ddb8-… 6af9778 

Shlomi Fish 1b3dcd7 

shl...@13c2ddb8-… 3722129 

Shlomi Fish 1b3dcd7 
shl...@13c2ddb8-… 3722129 
Shlomi Fish 1b3dcd7 
shl...@13c2ddb8-… 3722129 


Shlomi Fish 1b3dcd7 
shl...@13c2ddb8-… 3722129 

Shlomi Fish 67596c4 







Shlomi Fish 46deb32 


Shlomi Fish dae5885 
Shlomi Fish 46deb32 
Shlomi Fish b59e70a 










Shlomi Fish 46deb32 
Shlomi Fish dae5885 



Shlomi Fish 46deb32 
Shlomi Fish 404bd5d 
Shlomi Fish 46deb32 
Shlomi Fish dae5885 
Shlomi Fish 44d7c8b 



Shlomi Fish dae5885 





Shlomi Fish b59e70a 


Shlomi Fish 19cd87a 

Shlomi Fish dae5885 
TARGET = dest

WML_FLAGS += -DLATEMP_THEME=better-scm -DLATEMP_SERVER=berlios

LATEMP_WML_FLAGS = $(shell latemp-config --wml-flags)
COMMON_PREPROC_FLAGS = -I $$HOME/conf/wml/Latemp/lib

WML_FLAGS += --passoption=2,-X3074 --passoption=3,-I../lib/ \
	--passoption=3,-w $(LATEMP_WML_FLAGS) -I../ -DROOT~. \
	-I../lib/ --passoption=7,"-S imgsize" \
	-I $${HOME}/apps/wml

TTML_FLAGS += $(COMMON_PREPROC_FLAGS) -I lib
WML_FLAGS += $(COMMON_PREPROC_FLAGS)

RSYNC = rsync --progress --verbose --rsh=ssh

ARC_NAME := $(shell cd temp && ./get-arc-name.sh)

DEST_ARC_PAGE = $(TARGET)/source/index.html

DOCS_COMMON_DEPS = template.wml

all: bad_elements_html run_compass latemp_targets perl_for_newbies_extra_data iperl_extra_data \
	todo_done_data htaccess

include include.mak
include rules.mak
include p4n.mak

run_compass: src/style.css src/jqui-override.css

src/style.css: config.rb lib/sass/style.sass lib/sass/print.sass lib/sass/vim_syntax_highlighting.sass
	compass compile

src/jqui-override.css: lib/sass/jqui-override.sass
	compass compile

dest/humour/index.html: lib/retrieved-html-parts/Perl_Humour.html
dest/FAQs/freenode-perl/index.html: lib/retrieved-html-parts/Freenode_Sharp_Perl_FAQ.html
dest/IDEs-and-tools/Perl_developer_tools/index.html: lib/retrieved-html-parts/Perl_developer_tools.html
dest/tutorials/hyperpolyglot/sheet1.html: lib/retrieved-html-parts/hyperpolyglot/scripting.html

dest/learn/index.html: lib/why-perl.wml

# upload: upload_hexten
upload: upload_beta

# Add a dependency on books.wml
$(filter dest/books/%.html,$(BERLIOS_DOCS_DEST)) : lib/books.wml

dest/uses/sys-admin/index.html dest/topics/files-and-directories/index.html: lib/files_dirs_modules.wml

upload_berlios: all
	(cd dest && $(RSYNC) -a * shlomif@shell.berlios.de:/home/groups/perl-begin/htdocs/)

upload_hexten: all
	(cd dest && $(RSYNC) -a * perl-begin@hexten.net:htdocs/)

upload_iglu: all
	(cd dest && $(RSYNC) -a * shlomif@iglu.org.il:/iglu/html/shlomif/Perl-Begin/)

upload_beta: all
	(cd dest && $(RSYNC) -a --inplace * perl-begin@hexten.net:htdocs/__Beta-Quop/)

upload_local: all
	(cd dest && $(RSYNC) -a --inplace * /var/www/html/shlomif/perl-begin/)

test: all
	prove Tests/*.t

runtest: all
	runprove Tests/*.t

DEST_ARC_NAME = $(TARGET)/source/arcs/$(ARC_NAME)

upload_home: all
	(cd dest && $(RSYNC) -a * $${HOMEPAGE_SSH_PATH}/Perl-Begin/)

update_p4n:
	touch src/tutorials/perl-for-newbies/*/*.wml

rebuild_p4n: update_p4n all

IMPATIENT_PERL_FILES = $(patsubst %,dest/tutorials/impatient-perl/%,iperl.html $(patsubst %,iperl_files/%,iperl_html_m2efc85d6.jpg iperl_html_m5238e28d.jpg))

iperl_extra_data: $(IMPATIENT_PERL_FILES)

$(IMPATIENT_PERL_FILES): dest/tutorials/impatient-perl/%: lib/tutorials/impatient-perl/%
	cp -f $< $@

TODO_DONE = $(patsubst %,$(TARGET)/contribute/%, TODO.txt DONE.txt)

todo_done_data: $(TODO_DONE)

$(TODO_DONE): $(TARGET)/contribute/%.txt: %.txt
	cp -f $< $@

# .PHONY:
#
# $(DEST_ARC_PAGE) :: $(TARGET)/% : src/%.wml $(LIBRARY_FILES) .PHONY
# 	(cd src && wml $(WML_FLAGS) -DARCNAME=$(ARC_NAME) -DFILENAME=$(patsubst src/%.wml,%,$<) $(patsubst src/%,%,$<)) > $@
#
# arc: $(DEST_ARC_NAME) $(DEST_ARC_PAGE)
#
# $(DEST_ARC_NAME):
# 	(cd temp && ./make-archive.sh)
# 	mv temp/$(ARC_NAME) $@
#
# upload_arc: arc
# 	$(RSYNC) $(ARC_NAME) shlomif@shell.berlios.de:
#
#
#

htaccess: $(TARGET)/.htaccess

$(TARGET)/.htaccess: lib/htaccess.txt
	cp -f $< $@

BAD_ELEMENTS_SOURCE_XML = src/tutorials/bad-elements/perl-elements-to-avoid.xml-grammar-vered.xml
BAD_ELEMENTS_XSLT = src/tutorials/bad-elements/vered-xml-to-docbook.xslt
BAD_ELEMENTS_XHTML_DIR = lib/tutorials/bad-elements/all-in-one-xhtml/bad-elements

DOCBOOK5_BASE_DIR = lib/docbook/5

DOCBOOK5_SOURCES_DIR := $(DOCBOOK5_BASE_DIR)/xml
DOCBOOK5_RENDERED_DIR := $(DOCBOOK5_BASE_DIR)/rendered
DOCBOOK5_ALL_IN_ONE_XHTML_DIR := $(DOCBOOK5_BASE_DIR)/essays

BAD_ELEMENTS_DB5 := $(DOCBOOK5_SOURCES_DIR)/bad-elements.xml
BAD_ELEMENTS_XHTML := $(DOCBOOK5_ALL_IN_ONE_XHTML_DIR)/bad-elements/all-in-one.xhtml
BAD_ELEMENTS_RENDERED := $(DOCBOOK5_RENDERED_DIR)/bad-elements.xhtml

bad_elements_html: $(BAD_ELEMENTS_XHTML) $(BAD_ELEMENTS_RENDERED)

DOCBOOK5_RELAXNG = rng/docbook.rng
DOCBOOK5_XSL_STYLESHEETS_PATH := $(HOME)/Download/unpack/file/docbook/docbook-xsl-ns-snapshot
DOCBOOK5_XSL_ONECHUNK_XSLT_STYLESHEET := lib/sgml/shlomif-docbook/xsl-5-stylesheets/shlomif-essays-5-xhtml-onechunk.xsl

$(BAD_ELEMENTS_DB5): $(BAD_ELEMENTS_XSLT) $(BAD_ELEMENTS_SOURCE_XML)
	jing lib/XML-Grammar-Vered/vered-xml.rng $(BAD_ELEMENTS_SOURCE_XML)
	xsltproc -o $@ $(BAD_ELEMENTS_XSLT) $(BAD_ELEMENTS_SOURCE_XML)
	jing $(DOCBOOK5_RELAXNG) $@

# -x lib/sgml/shlomif-docbook/xsl-5-stylesheets/shlomif-essays-5-xhtml-onechunk.xsl
# --basepath $(HOME)/Download/unpack/file/docbook/docbook-xsl-ns-snapshot
$(BAD_ELEMENTS_XHTML): $(BAD_ELEMENTS_DB5)
	jing $(DOCBOOK5_RELAXNG) $<
	docmake --stringparam "root.filename=$@.temp.xml" --basepath $(DOCBOOK5_XSL_STYLESHEETS_PATH) -x $(DOCBOOK5_XSL_ONECHUNK_XSLT_STYLESHEET) xhtml-1_1 $<
	xsltproc --output $@ ./bin/clean-up-docbook-xhtml-1.1.xslt $@.temp.xml.html
	rm -f $@.temp.xml.html
	perl -lpi -e 's/[ \t]+\z//' $@

$(DOCBOOK5_RENDERED_DIR)/%.xhtml: $(DOCBOOK5_ALL_IN_ONE_XHTML_DIR)/%/all-in-one.xhtml
	./bin/clean-up-docbook-5-xsl-xhtml-1_1.pl -o $@ $<

dest/tutorials/bad-elements/index.html: $(BAD_ELEMENTS_RENDERED)

%.show:
	@echo "$* = $($*)"
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.