bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

uninstalling relocation wrappers


From: Ben Pfaff
Subject: uninstalling relocation wrappers
Date: Tue, 08 Jun 2010 22:58:12 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

"make distuninstallcheck" noticed a weakness in the recipes that
relocatable-maint.texi recommends for relocatable programs: "make
uninstall" does not remove the ".bin" programs that install-reloc
creates on some systems.

So far, the best solution that I've come up with that is generic,
that is, that does not require the maintainer to name each
installation directory or each program to be installed, is adding
the following as an uninstall-hook:

if !RELOCATABLE_VIA_LD
        if test $(RELOCATABLE) = yes; then                              \
            case '$(EXEEXT)' in                                         \
                    *.bin) ;;                                           \
                    *) $(MAKE) uninstall EXEEXT=$(EXEEXT).bin ;;        \
            esac;                                                       \
        fi
endif

It leaves something to be desired in terms of elegance, but it
does work for my test case at least.  Do you have any comments,
or any better ideas?

Thanks,

Ben.
-- 
Ben Pfaff 
http://benpfaff.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]