Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

The make operation will fail in emane-tutorial/2 due to the wrong path setting of the file emane/rules.mk #29

Open
zihefang opened this issue Sep 9, 2020 · 1 comment · May be fixed by #37

Comments

@zihefang
Copy link

zihefang commented Sep 9, 2020

Environment:

Ubuntu 18.04
emane-tutorial 0.27
emane 1.2.6
GUN make 4.1

Issue

Since there is no xml file such as rfpipenem.xml in the .emanegentransportxml directory In emane-tutotial/2, the error in the figure will appear when make.

图片

So I tried to modify lines 72 to 79 in emane-tutorial/rules.mk to make it work.

solution

Original code

$(PLATFORMDEPS): .%-dep:%
	mkdir .emanegentransportxml && \
	 cd .emanegentransportxml &&   \
	 emanegentransportxml ../$< && \
	 for i in $$(ls *.xml); do chmod g-w,u-w $$i; cp -f $$i ..; done && \
	 cd .. && \
	 rm -rf .emanegentransportxml
	@touch $@

Modified code

$(PLATFORMDEPS): .%-dep:%
	emanegentransportxml ./$< && \
	for i in $$(ls *.xml); do chmod g-w,u-w $$i; done
        @touch $@

It works well with the modified code.

@ZENOTME
Copy link

ZENOTME commented Nov 15, 2023

Thanks! Maybe we can send a PR to fix this.

@ZENOTME ZENOTME linked a pull request Nov 15, 2023 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants