make install does not work on newer MacOS (install command/folders)
The install command on MacOS does not have the -t command line flag, so it fails.
Additionally, the folder name for the libraries generated was not "lib" but "libmpc.so.dSYM".
I installed the files manually by copying them and then manually resetting their permissions afterward:
cp -r ./$(DIST)/libmpc.so.dSYM $(DESTDIR)$(PREFIX)/lib cp ./$(PROJ).c $(DESTDIR)$(PREFIX)/share/$(PROJ) cp ./$(PROJ).h $(DESTDIR)$(PREFIX)/share/$(PROJ)
The Makefile needs to be improved for real. I'm struggling to package this on Guix for a personal project. I'm not really sure why is there test for static and dynamic - shouldn't this be checked after building libmpc.so?
Feel free to go ahead and fix it.
@orangeduck I have it working just fine with autotools. The test case is missing for now, so is the flag for building examples and choosing between static and dynamic (only builds shared libraries for now). But the good news is that it builds and works the way it was intended to on my system:
$ tree $(guix build -L . libmpc)
/gnu/store/ahfzm6aw4dijffqjxdvybxj1a9fh4dzi-libmpc-0.9.0
├── include
│ └── mpc.h
├── lib
│ ├── libmpc.a
│ ├── libmpc.la
│ ├── libmpc.so
│ └── pkgconfig
│ └── libmpc.pc
└── share
└── doc
├── libmpc
│ ├── LICENSE.md
│ └── README.md
└── libmpc-0.9.0
└── LICENSE.md
8 directories, 8 files