Best practice for make files?

I currently have two projects, one being a shared library and the other an application
The problem I am facing is that I need to compile and install the library then run an ldconfig before attempting to compile the application(dependency)

What would be the best practice for a one time command(compiles&installs everything)?

Should I make a bash-script that compiles and installs the library(via the makefile) and then compile & install the application? In this case he has to run as root

Should I force the user to compile & install the library 1st and then then application(each having their own makefile)?