File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed
Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -12,4 +12,4 @@ install:
1212 - make deps
1313
1414script :
15- - make check
15+ - make check NGSDN_TUTORIAL_SUDO=sudo
Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ onos_url := http://localhost:8181/onos
2424onos_curl := curl --fail -sSL --user onos:rocks --noproxy localhost
2525app_name := org.onosproject.ngsdn-tutorial
2626
27+ NGSDN_TUTORIAL_SUDO ?=
28+
2729default :
2830 $(error Please specify a make target (see README.md) )
2931
@@ -85,13 +87,13 @@ netcfg:
8587 @echo
8688
8789reset : stop
88- -rm -rf ./tmp
90+ -$( NGSDN_TUTORIAL_SUDO ) rm -rf ./tmp
8991
9092clean :
91- -rm -rf p4src/build
92- -rm -rf app/target
93- -rm -rf app/src/main/resources/bmv2.json
94- -rm -rf app/src/main/resources/p4info.txt
93+ -$( NGSDN_TUTORIAL_SUDO ) rm -rf p4src/build
94+ -$( NGSDN_TUTORIAL_SUDO ) rm -rf app/target
95+ -$( NGSDN_TUTORIAL_SUDO ) rm -rf app/src/main/resources/bmv2.json
96+ -$( NGSDN_TUTORIAL_SUDO ) rm -rf app/src/main/resources/p4info.txt
9597
9698deep-clean : clean
9799 -docker container rm ${app_build_container_name}
@@ -157,11 +159,11 @@ solution-apply:
157159 rsync -r solution/ ./
158160
159161solution-revert :
160- rm -rf ./app
161- rm -rf ./p4src
162- rm -rf ./ptf
162+ $( NGSDN_TUTORIAL_SUDO ) rm -rf ./app
163+ $( NGSDN_TUTORIAL_SUDO ) rm -rf ./p4src
164+ $( NGSDN_TUTORIAL_SUDO ) rm -rf ./ptf
163165 cp -r working_copy/* ./
164- rm -rf working_copy/
166+ $( NGSDN_TUTORIAL_SUDO ) rm -rf working_copy/
165167
166168check :
167169 make reset
You can’t perform that action at this time.
0 commit comments