Modified the Makefiles to include a "make uninstall" to remove an installed PDK.
diff --git a/Makefile.in b/Makefile.in index a4e8a02..29ee1a3 100644 --- a/Makefile.in +++ b/Makefile.in
@@ -30,6 +30,10 @@ # clean up all files generated by 'make' and remove # all log files. # +# make uninstall +# +# remove the installed PDKs. +# #--------------------------------------------------- # # The following definitions are tied to the contents @@ -49,6 +53,7 @@ TECHS_ALL = $(addprefix tech_,$(TECHS)) TECHS_INSTALL = $(addprefix install-,$(TECHS)) +TECHS_UNINSTALL = $(addprefix uninstall-,$(TECHS)) TECHS_CLEAN = $(addprefix clean-,$(TECHS)) TECHS_VERYCLEAN = $(addprefix veryclean-,$(TECHS)) @@ -60,6 +65,9 @@ install: $(TECHS_INSTALL) @echo $(DONE_MESSAGE) +uninstall: $(TECHS_UNINSTALL) + @echo $(DONE_MESSAGE) + clean: $(TECHS_CLEAN) @echo $(DONE_MESSAGE) @@ -80,6 +88,9 @@ install-sky130: sky130 (cd sky130 && ${MAKE} install) +uninstall-sky130: sky130 + (cd sky130 && ${MAKE} uninstall) + clean-sky130: (cd sky130 && ${MAKE} clean)
diff --git a/VERSION b/VERSION index 8fa5878..08900bc 100644 --- a/VERSION +++ b/VERSION
@@ -1 +1 @@ -1.0.131 +1.0.132
diff --git a/sky130/Makefile.in b/sky130/Makefile.in index ad53099..11eb22c 100644 --- a/sky130/Makefile.in +++ b/sky130/Makefile.in
@@ -720,6 +720,31 @@ -link_from ${DIST_LINK_TARGETS} 2>&1 | tee -a ${SKY130A}_install.log echo "Ended SKY130 PDK migration on "`date` >> ${SKY130A}_install.log +uninstall: + if test "x${DIST_PATH}" == "x" ; then \ + ${MAKE} uninstall-local ; \ + else \ + ${MAKE} uninstall-dist; \ + fi + +uninstall-local: uninstall-local-a + +uninstall-local-a: + echo "Uninstalling SKY130 PDK from ${LOCAL_PATH}" + if test "x${LOCAL_PATH}" != "x" ; then \ + ${RM} -rf ${LOCAL_PATH}/${SKY130A} ; \ + fi + echo "Finished SKY130 PDK uninstall" + +uninstall-dist: uninstall-dist-a + +uninstall-dist-a: + echo "Uninstalling SKY130 PDK from ${DIST_PATH}" + if test "x${DIST_PATH}" != "x" ; then \ + ${RM} -rf ${DIST_PATH}/${SKY130A} ; \ + fi + echo "Finished SKY130 PDK uninstall" + clean: clean-a clean-a: