Make the makefile actually work...

This commit is contained in:
zach%zachlipton.com 2005-09-07 04:29:28 +00:00
Родитель c6fdaac193
Коммит ff12881aa8
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -20,7 +20,7 @@ install: templates
\$$template->context()->template('$@'); \
"
templates:
templates: index.html.tmpl
$(PERL) -e " \
use File::Find; \
find({ wanted => sub { \
@ -29,7 +29,8 @@ templates:
return if (\$$name =~ /\/CVS\//); \
return if (\$$name !~ /\.tmpl\$$/); \
\$$name =~ s/templates\/en\/default\///; \
if (-M 'templates/en/default/'.\$$name < -M 'data/templates/en/default/'.\$$name) { \
if (-M 'templates/en/default/'.\$$name < -M 'data/templates/en/default/'.\$$name \
|| ! -e 'data/templates/en/default/'.\$$name) { \
system("make", "\$$name"); \
} \
}, no_chdir => 1 }, 'templates/en/default'); \