perl-begin / Makefile

TARGET = dest


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


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

ARC_NAME := $(shell cd temp && ./

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

DOCS_COMMON_DEPS = template.wml

all: 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/style.css: config.rb lib/sass/style.sass lib/sass/print.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/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 *

upload_hexten: all
	(cd dest && $(RSYNC) -a *

upload_iglu: all
	(cd dest && $(RSYNC) -a *

upload_beta: all
	(cd dest && $(RSYNC) -a --inplace *

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

	prove Tests/*.t

	runprove Tests/*.t

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

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

	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/%.txt, TODO DONE)

todo_done_data: $(TODO_DONE)

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

# $(DEST_ARC_PAGE) :: $(TARGET)/% : src/%.wml $(LIBRARY_FILES) .PHONY
# 	(cd src && wml $(WML_FLAGS) -DARCNAME=$(ARC_NAME) -DFILENAME=$(patsubst src/%.wml,%,$<) $(patsubst src/%,%,$<)) > $@
# 	(cd temp && ./
# 	mv temp/$(ARC_NAME) $@
# upload_arc: arc

htaccess: $(TARGET)/.htaccess

$(TARGET)/.htaccess: lib/htaccess.txt
	cp -f $< $@
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
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.