commit 2f47593d9ceb7041fc2961d88413b80c2a07ecc5
parent 0ff700b7bea18cb602979f1679cc2c53532f3af9
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Fri, 11 Apr 2025 09:59:51 +0200
Makefile correction
The Random123 library was checked with the wrong version number.
The uninstall target did not take into account the prefix macros
defining in which directories the files to be uninstalled should be
located.
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
@@ -61,7 +61,7 @@ libstar-sp.o: $(OBJ)
$(OBJCOPY) $(OCPFLAGS) $@
.config: config.mk
- $(PKG_CONFIG) --atleast-version $(RSYS_VERSION) random123
+ $(PKG_CONFIG) --atleast-version $(RANDOM123_VERSION) random123
$(PKG_CONFIG) --atleast-version $(RSYS_VERSION) rsys
@echo "config done" > .config
@@ -104,11 +104,11 @@ install: library pkg
install 644 "$(DESTDIR)$(PREFIX)/share/doc/star-sp" COPYING README.md
uninstall:
- rm -f "$(DESTDIR)$(PREFIX)/lib/$(LIBNAME)"
- rm -f "$(DESTDIR)$(PREFIX)/lib/pkgconfig/star-sp.pc"
+ rm -f "$(DESTDIR)$(LIBPREFIX)/$(LIBNAME)"
+ rm -f "$(DESTDIR)$(INCPREFIX)/star/ssp.h"
+ rm -f "$(DESTDIR)$(LIBPREFIX)/pkgconfig/star-sp.pc"
rm -f "$(DESTDIR)$(PREFIX)/share/doc/star-sp/COPYING"
rm -f "$(DESTDIR)$(PREFIX)/share/doc/star-sp/README.md"
- rm -f "$(DESTDIR)$(PREFIX)/include/star/ssp.h"
clean: clean_test
rm -f $(DEP) $(OBJ) $(LIBNAME)