jimjag / epm

Updated ESP Package Manager (EPM)
https://jimjag.github.io/epm/
Apache License 2.0
10 stars 8 forks source link

make install does not work on documentation. #4

Closed leginee closed 2 years ago

leginee commented 3 years ago

Hi Jim,

I am building a package for arch. The Arch build tool is always executing make install including the installation of the documentation. I get Following error:

make[1]: [Makefile:86: install] Error 127 (ignore)

for file in epm.1 epminstall.1 mkepmlist. setup.1; do \
    -c -m 644 $file /home/legine/workspace/arch/epm/pkg/epm/usr/share/man/man1; \
done

After some further Analysis I figured that the makefile in doc does not state to use install. which seems to result in this rather messy situation. epm-5.0.0/doc/Makefile:

[...]
Programs...
CC    =    cc
HTMLDOC    =    /usr/bin/echo
RM    =    /usr/bin/rm -f
[...]
# Install documentation
install:
    echo Installing EPM manpages in $(BUILDROOT)$(mandir)/man1
    $(INSTALL) -d -m 755 $(BUILDROOT)$(mandir)/man1

I tried adding

INSTALL = @INSTALL@

to Makefile.in, but no luck.

Any ideas?

leginee commented 3 years ago

Okay found the solution. I have changed: line 24 INSTALL = /usr/bin/install

line 89 $(INSTALL) -c -m 644 $$file $(BUILDROOT)$(mandir)/man1 .; \ line 94 $(INSTALL) -c -m 644 $$file $(BUILDROOT)$(mandir)/man1 .; \ line 99 $(INSTALL) -c -m 644 $$file $(BUILDROOT)$(docdir) .; \

Then it is almost working. But maybe there is an issue with one file which can not be found. It may be that my setup is now a bit broken from the ongoing trying. I hope this helps to make the makefile work. I keep looking into this.