richardhundt / shine

A Shiny Lua Dialect
Other
231 stars 18 forks source link

'make install' not working properly #39

Closed shortweekend closed 10 years ago

shortweekend commented 10 years ago

The Makefile in the root folder should rather be:

install: all
    mkdir -p ${PREFIX}/lib/nyanga
    mkdir -p ${PREFIX}/lib/lua/5.1
    make -C ./lib install
    install -m 0755 ${BUILD}/nyanga ${PREFIX}/bin/nyanga
    install -m 0755 ${BUILD}/nyangac ${PREFIX}/bin/nyangac
    install -m 0644 ${BUILD}/libs/nyanga.so ${PREFIX}/lib/lua/5.1/nyanga.so
    ${LDCONFIG}

...in order for the ${PREFIX}/lib folder to be created before the *.so libraries get copied when entering the inner ./lib Makefile.

The inner ./lib Makefile should probably also remove the ${PREFIX}/lib/nyanga/ folder when uninstalling:

uninstall:
    rm -f ${PREFIX}/lib/nyanga/*.so
    rm -rf ${PREFIX}/lib/nyanga/

Thanks

richardhundt commented 10 years ago

Thanks! Fixed