[Top][All Lists]

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

Re: backslash-newline change: my world has become black

From: Paul D. Smith
Subject: Re: backslash-newline change: my world has become black
Date: Tue, 20 Dec 2005 17:47:48 -0500

%% "Paul D. Smith" <address@hidden> writes:

  pds>  PERLFUNC = '\
  pds>        BEGIN{print "#jidanni ~root/config auto changed"}\              
  pds>        s/^server pool.ntp.org/#jidanni off $&/;\                       
  pds>        END{print "#more jidanni ~root/config auto changes";\           
  pds>        print "server $_.stdtime.gov.tw offline maxdelay 1" for qw/tick \
  pds>        time tock/; print "mailonchange address@hidden 12";\
  pds>        print "#jidanni: restarting in /etc/ppp/ip-up.d/chrony so \
  pds>        can use hostnames\n#http://www.stdtime.gov.tw/ntp/CONF.HTM"}'

  pds>  all:
  pds>        perl -e $(PERLFUNC)

You can also consider whether using target-specific variables makes
things more or less readable:

    all: PERLFUNC = ...
         perl -e $(PERLFUNC)

 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist

reply via email to

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