[tor-bugs] #5126 [Obfsproxy]: Makefile.am is GNU Make specific

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Tue Feb 14 13:18:40 UTC 2012


#5126: Makefile.am is GNU Make specific
-----------------------+----------------------------------------------------
 Reporter:  ln5        |          Owner:  asn
     Type:  defect     |         Status:  new
 Priority:  normal     |      Milestone:     
Component:  Obfsproxy  |        Version:     
 Keywords:             |         Parent:     
   Points:             |   Actualpoints:     
-----------------------+----------------------------------------------------
 The shell command

         $(SED) -e 's,[@]PYTHON[@],$(PYTHON),' < $< > $@

 expands to

         /usr/bin/sed -e 's,[@]PYTHON[@],/usr/local/bin/python,' <  >
 tester.py

 when using BSD make.

 The simple solution would be to name the single source in the shell
 command, like so

 tester_py_SOURCES = src/test/tester.py.in
 tester.py: $(tester_py_SOURCES) Makefile
         $(SED) -e 's,[@]PYTHON[@],$(PYTHON),' < $(tester_py_SOURCES) > $@
         chmod +x $@

 This isn't very nice though since it'll break when more files are
 added to tester_py_SOURCES.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/5126>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list