Opened 8 years ago

Closed 8 years ago

#5126 closed defect (fixed)

Makefile.am is GNU Make specific

Reported by: ln5 Owned by: asn
Priority: Medium Milestone:
Component: Archived/Obfsproxy Version:
Severity: Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

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.

Child Tickets

Change History (2)

comment:1 Changed 8 years ago by nickm

Should be fixed; thanks! (I went with an even more quick-and-dirty fix)

comment:2 Changed 8 years ago by asn

Resolution: fixed
Status: newclosed

This was merged and fixed the issue. It spawned #5310 though.

Note: See TracTickets for help on using tickets.