emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: buildobj.lst and Windows builds - a tiny bit of help needed?


From: Eli Zaretskii
Subject: Re: buildobj.lst and Windows builds - a tiny bit of help needed?
Date: Mon, 24 Aug 2009 21:22:04 +0300

> From: Ken Raeburn <address@hidden>
> Date: Mon, 24 Aug 2009 00:16:43 -0400
> Cc: address@hidden, address@hidden
> 
> Then, I think this should do it... does it look right to you?
> 
> $(SRC)/buildobj.h: make-buildobj-$(SHELLTYPE)
> make-buildobj-CMD: Makefile
>       echo #define BUILDOBJ "\  > $(SRC)/buildobj.h
>       echo $(OBJ0)           \ >> $(SRC)/buildobj.h
>       echo $(OBJ1)           \ >> $(SRC)/buildobj.h
>       echo $(WIN32OBJ)       \ >> $(SRC)/buildobj.h
>       echo $(FONTOBJ)        \ >> $(SRC)/buildobj.h
>       echo "                   >> $(SRC)/buildobj.h

The first and the last lines still don't work, because `echo' retains
the quotes, but still disables the special meaning of > and >> inside
quotes, and so redirection doesn't work.  I see no choice but to use
`^' to escape the quotes:

$(SRC)/buildobj.h: Makefile
        echo #define BUILDOBJ ^"\  > $(SRC)/buildobj.h
        echo $(OBJ0)           \ >> $(SRC)/buildobj.h
        echo $(OBJ1)           \ >> $(SRC)/buildobj.h
        echo $(WIN32OBJ)       \ >> $(SRC)/buildobj.h
        echo $(FONTOBJ)        \ >> $(SRC)/buildobj.h
        echo ^"                  >> $(SRC)/buildobj.h

(`^' is the CMD escape character, but only CMD supports it, Windows
programs do not, in general.  Sigh.)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]