Fix installation path in Makefile
authorArmaan Bhojwani <me@armaanb.net>
Mon, 10 May 2021 13:33:52 +0000 (09:33 -0400)
committerArmaan Bhojwani <me@armaanb.net>
Mon, 10 May 2021 13:33:52 +0000 (09:33 -0400)
Makefile

index 522fd86e3eacd0e629aa5c240eed661d82e2e819..613c1077ef7441b0ae7022dc8434fe63339abdb7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ CFLAGS   := -Wall -Wextra -pedantic -std=c99 -fPIC ${CFLAGS}
 all: lib man
 
 lib:
-       ${CC} -shared ${LDFLAGS} ${OBJS} -o acheam.so src/*.c ${CFLAGS}
+       ${CC} -shared ${LDFLAGS} ${OBJS} -o libacheam.so src/*.c ${CFLAGS}
 
 man:
        for i in man/*.scd; do \
@@ -16,14 +16,14 @@ install: all
                ${DESTDIR}/lib/pkgconfig \
                ${DESTDIR}/man/man3
 
-       cp acheam.so    ${DESTDIR}/lib
+       cp libacheam.so ${DESTDIR}/lib
        cp acheam.pc    ${DESTDIR}/lib/pkgconfig
        cp src/acheam.h ${DESTDIR}/include
        cp man/*.3      ${DESTDIR}/man/man3/
 
 uninstall:
        rm ${DESTDIR}/include/acheam.h \
-               ${DESTDIR}/lib/acheam.so \
+               ${DESTDIR}/lib/libacheam.so \
                ${DESTDIR}/lib/pkgconfig/acheam.pc
 
        for i in man/*.scd; do \