Corrected the top-level Makefile to add "/share" after the prefix, so
that the open_pdks scripts go in ${prefix}/share/pdk/bin/ as they are
expected to, while the SkyWater PDK goes in ${prefix}/share/pdk/sky130A/.
Changed the instructions in docs.txt so that the distributed install
works as advertized (swapped the definitions suggested for prefix and
DESTDIR).
diff --git a/Makefile.in b/Makefile.in
index 06bb94a..fb549d5 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -84,14 +84,14 @@
common_install:
@if test -w @prefix@ ; then \
- mkdir -p @prefix@/pdk/bin/ ;\
- cp common/cleanup_unref.py @prefix@/pdk/bin/ ;\
- cp common/soc_floorplanner.py @prefix@/pdk/bin/ ;\
- cp common/change_gds_cell.py @prefix@/pdk/bin/ ;\
- cp common/find_gds_prefix.py @prefix@/pdk/bin/ ;\
- cp common/change_gds_string.py @prefix@/pdk/bin/ ;\
- ${CPP} -DPREFIX=@prefix@ common/create_project.py \
- @prefix@/pdk/bin/create_project.py ;\
+ mkdir -p @prefix@/share/pdk/bin/ ;\
+ cp common/cleanup_unref.py @prefix@/share/pdk/bin/ ;\
+ cp common/soc_floorplanner.py @prefix@/share/pdk/bin/ ;\
+ cp common/change_gds_cell.py @prefix@/share/pdk/bin/ ;\
+ cp common/find_gds_prefix.py @prefix@/share/pdk/bin/ ;\
+ cp common/change_gds_string.py @prefix@/share/pdk/bin/ ;\
+ ${CPP} -DPREFIX=@prefix@/share common/create_project.py \
+ @prefix@/share/pdk/bin/create_project.py ;\
echo "Common install: Done." ;\
else \
echo "Common install: @prefix@ is not writeable (ignoring)." ;\
diff --git a/docs.txt b/docs.txt
index 13b2c71..0b1345f 100644
--- a/docs.txt
+++ b/docs.txt
@@ -167,15 +167,14 @@
Packagers and administrators that want to create a directory which
is destined to be installed on other machines should set`--prefix`
- to be the final install location and use `DESTDIR` with
- `make install` to the directory where the files should be staged,
- see the following example:
+ to be the directory where the files should be staged, and use
+ `DESTDIR` with `make install` to the final install location.
+ See the following example:
- ./configure --prefix=/usr
+ ./configure --prefix=/tmp/package
make
- # Need to use sudo so the file ends up with the right
- # permissions.
- sudo make DESTDIR=/tmp/package
+ # Need to use sudo so the file ends up with the right permissions.
+ sudo make DESTDIR=/usr install
(cd /tmp/package; tar -cvf ../dist.tar)
Then on the final install machine you would want to do: