Makefile.common - WMLPROLOG & WMLEPILOG
Hello list.
I tried to add some scripts for polish tranlation in WMLPROLOG, just to check
if it works, and on the other hand, there is a small row between polish
translators, how to quote, so this script would sort things out. BUT, the
original lines of Makefile.common, which interests us, look like that:
WMLPROLOG :=
WMLEPILOG :=
WML = wml $(WMLOPTIONS) -o UNDEFu$(LANGUAGECAP):$(WMLOUTFILE)@g+w $(WMLPROLOG)
$(WMLEPILOG)
I looked at it, was a little interested, but said OK, because I thought, it's
allright. I've added WMLPROLOG = <a script> into polish/Make.lang and entered
a directory to check if make works correctly. So....:
tamcap@minog:~/cvs/debian/webwml/polish/devel$ make
wml -q -D CUR_YEAR=2003 -o UNDEFuPL:index.pl.html@g+w ../../polish/test.pl
index.wml
tamcap@minog:~/cvs/debian/webwml/polish/devel$
Wow, no errors, but when I looked at the output: index.pl.html -- I found my
script inside and only it. So, I propose a patch to Makefile.common,
attached. Maybe it's not the simpliest way to make it, working, but it works.
Any comments?
Greetings
Marek Łaska
--- Makefile.common Wed Jul 9 09:14:52 2003
+++ Makefile.common2 Wed Jul 9 08:39:46 2003
@@ -22,9 +22,9 @@
LANGUAGECAP = $(shell echo $(LANGUAGE) | tr "a-z" "A-Z")
WMLOPTIONS := -q -D CUR_YEAR=$(CUR_YEAR)
WMLOUTFILE = $(@F)
-WMLPROLOG :=
-WMLEPILOG :=
-WML = wml $(WMLOPTIONS) -o UNDEFu$(LANGUAGECAP):$(WMLOUTFILE)@g+w $(WMLPROLOG) $(WMLEPILOG)
+WMLPROLOG :=echo
+WMLEPILOG :=echo
+WML = wml $(WMLOPTIONS) -o UNDEFu$(LANGUAGECAP):$(WMLOUTFILE)@g+w -P $(WMLPROLOG) -E $(WMLEPILOG)
WMLFILES = $(wildcard *.wml)
ifndef SUBLANG
Reply to: