[Lazarus] What does make install do?

Michael Van Canneyt michael at freepascal.org
Sat Oct 17 11:13:11 CEST 2015



On Sat, 17 Oct 2015, Bo Berglund wrote:

> Tried to figure this out but it was not so easy..
>
> If I do this after getting the sources (trunk) from svn:
> make clean bigide
> then Lazarus builds OK and I can use it by running startlazarus
>
> But there is also a command
> make install
>
> What exactly does this do (in a Debian Jessie derivative environment)

You can see this easily for yourself by adding the -n option:


home: >make -n install
/usr/bin/install -m 755 -d /usr/local/share
/usr/bin/install -m 755 -d /usr/local/share/lazarus
/usr/bin/install -m 755 -d /usr/local/share/applications
/usr/bin/install -m 755 -d /usr/local/share/pixmaps
/usr/bin/install -m 755 -d /usr/local/share/mime/packages
/usr/bin/install -m 755 -d /usr/local/share/icons/hicolor/48x48/mimetypes
/usr/bin/install -m 755 -d /usr/local/bin
/usr/bin/install -m 755 -d /usr/local/share/man
/usr/bin/install -m 755 -d /usr/local/share/man/man1
/bin/cp -Rfp packager debugger designer converter ide images languages lazarus.app units /usr/local/share/lazarus
/bin/cp -Rfp components docs doceditor examples lcl test tools /usr/local/share/lazarus
/bin/cp -Rfp Makefile* *.txt /usr/local/share/lazarus
/usr/bin/install -c -m 755 lazarus startlazarus lazbuild /usr/local/share/lazarus
ln -sf ../share/lazarus/lazarus /usr/local/bin/lazarus-ide
ln -sf ../share/lazarus/startlazarus /usr/local/bin/startlazarus
ln -sf ../share/lazarus/lazbuild /usr/local/bin/lazbuild
ln -sf ../share/lazarus/tools/lazres /usr/local/bin/lazres
ln -sf ../share/lazarus/tools/lrstolfm /usr/local/bin/lrstolfm
ln -sf ../share/lazarus/tools/updatepofiles /usr/local/bin/updatepofiles
make -C install/man install PREFIX=/usr/local GINSTALL=/usr/bin/install
make[1]: Entering directory `/home/michael/projects/lazarus/install/man'
cat man1/lazarus-ide.1 | gzip > man1/lazarus-ide.1.gz
cat man1/lazbuild.1 | gzip > man1/lazbuild.1.gz
cat man1/lazres.1 | gzip > man1/lazres.1.gz
cat man1/lrstolfm.1 | gzip > man1/lrstolfm.1.gz
cat man1/startlazarus.1 | gzip > man1/startlazarus.1.gz
cat man1/svn2revisioninc.1 | gzip > man1/svn2revisioninc.1.gz
cat man1/updatepofiles.1 | gzip > man1/updatepofiles.1.gz
/usr/bin/install -m 644 man1/lazarus-ide.1.gz man1/lazbuild.1.gz man1/lazres.1.gz man1/lrstolfm.1.gz man1/startlazarus.1.gz man1/svn2revisioninc.1.gz man1/updatepofiles.1.gz /usr/local/share/man/man1
rm -f man1/lazarus-ide.1.gz man1/lazbuild.1.gz man1/lazres.1.gz man1/lrstolfm.1.gz man1/startlazarus.1.gz man1/svn2revisioninc.1.gz man1/updatepofiles.1.gz
make[1]: Leaving directory `/home/michael/projects/lazarus/install/man'
/usr/bin/install -c -m 644 install/lazarus.desktop /usr/local/share/applications/lazarus.desktop
/usr/bin/install -c -m 644 images/icons/lazarus128x128.png /usr/local/share/pixmaps/lazarus.png
/usr/bin/install -c -m 644 install/lazarus-mime.xml /usr/local/share/mime/packages/lazarus.xml
/usr/bin/install -c -m 644 images/mimetypes/*.png /usr/local/share/icons/hicolor/48x48/mimetypes/
/usr/bin/install -m 755 -d /usr/local/share/lazarus/units/x86_64-linux/nogui
/usr/bin/install -m 755 -d /usr/local/share/lazarus/units/x86_64-linux/gtk
/usr/bin/install -m 755 -d /usr/local/share/lazarus/units/x86_64-linux/gtk2
/usr/bin/install -m 755 -d /usr/local/share/lazarus/units/x86_64-linux/qt 
/usr/bin/install -m 755 -d /usr/local/share/lazarus/components/synedit/design/languages

It seems lazarus is added to the start menu, from the line:

/usr/bin/install -c -m 644 install/lazarus.desktop /usr/local/share/applications/lazarus.desktop

Michael.




More information about the Lazarus mailing list