annotate modules/relocatable-prog @ 13940:40a6cefcc5c9

relocatable-prog-wrapper: Separate from relocatable-prog. * modules/relocatable-prog (Makefile.am): Define uninstall-hook and uninstall-relocwrapper rule here. * modules/relocatable-prog-wrapper (Makefile.am): ... not here. Reported by Ian Beckwith <ianb@erislabs.net>.
author Bruno Haible <bruno@clisp.org>
date Sun, 19 Dec 2010 11:59:10 +0100
parents 18ea6ab4e81d
children 4f21126cd802
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8313
bc237f82eb36 Move to here from relocatable.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 Description:
bc237f82eb36 Move to here from relocatable.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2 Help make programs relocatable, that is, to allow them to function
bc237f82eb36 Move to here from relocatable.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3 properly when copied to an arbitrary directory.
bc237f82eb36 Move to here from relocatable.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4
bc237f82eb36 Move to here from relocatable.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 Files:
bc237f82eb36 Move to here from relocatable.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 build-aux/config.libpath
bc237f82eb36 Move to here from relocatable.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 build-aux/reloc-ldflags
bc237f82eb36 Move to here from relocatable.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8 doc/relocatable.texi
bc237f82eb36 Move to here from relocatable.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 lib/relocatable.h
bc237f82eb36 Move to here from relocatable.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 lib/relocatable.c
bc237f82eb36 Move to here from relocatable.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 lib/progreloc.c
bc237f82eb36 Move to here from relocatable.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 m4/relocatable.m4
bc237f82eb36 Move to here from relocatable.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13 m4/relocatable-lib.m4
9444
0c3b25464595 relocatable.m4 needs lib-ld.m4.
Bruno Haible <bruno@clisp.org>
parents: 9363
diff changeset
14 m4/lib-ld.m4
8313
bc237f82eb36 Move to here from relocatable.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15
bc237f82eb36 Move to here from relocatable.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16 Depends-on:
bc237f82eb36 Move to here from relocatable.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17 relocatable-prog-wrapper
bc237f82eb36 Move to here from relocatable.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18 progname
8318
8a2d270e8012 Fix dependencies.
Bruno Haible <bruno@clisp.org>
parents: 8313
diff changeset
19 canonicalize-lgpl
8a2d270e8012 Fix dependencies.
Bruno Haible <bruno@clisp.org>
parents: 8313
diff changeset
20 xalloc
8a2d270e8012 Fix dependencies.
Bruno Haible <bruno@clisp.org>
parents: 8313
diff changeset
21 xreadlink
8a2d270e8012 Fix dependencies.
Bruno Haible <bruno@clisp.org>
parents: 8313
diff changeset
22 stdbool
8a2d270e8012 Fix dependencies.
Bruno Haible <bruno@clisp.org>
parents: 8313
diff changeset
23 unistd
10748
0ef26bffcbe1 Mark 'memcmp' obsolete.
Bruno Haible <bruno@clisp.org>
parents: 9444
diff changeset
24 memcmp
10755
b25692ed074a Mark 'strdup' obsolete.
Bruno Haible <bruno@clisp.org>
parents: 10748
diff changeset
25 strdup
8313
bc237f82eb36 Move to here from relocatable.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26
bc237f82eb36 Move to here from relocatable.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 configure.ac:
bc237f82eb36 Move to here from relocatable.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28 gl_RELOCATABLE([$gl_source_base])
bc237f82eb36 Move to here from relocatable.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
29
bc237f82eb36 Move to here from relocatable.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
30 Makefile.am:
9363
4d4d1419d4ab Use @FOO@ syntax instead of $(FOO) syntax, because it uncovers typos early.
Bruno Haible <bruno@clisp.org>
parents: 8334
diff changeset
31 DEFS += -DEXEEXT=\"@EXEEXT@\"
13940
40a6cefcc5c9 relocatable-prog-wrapper: Separate from relocatable-prog.
Bruno Haible <bruno@clisp.org>
parents: 12008
diff changeset
32 if RELOCATABLE_VIA_WRAPPER
40a6cefcc5c9 relocatable-prog-wrapper: Separate from relocatable-prog.
Bruno Haible <bruno@clisp.org>
parents: 12008
diff changeset
33 uninstall-hook: uninstall-relocwrapper
40a6cefcc5c9 relocatable-prog-wrapper: Separate from relocatable-prog.
Bruno Haible <bruno@clisp.org>
parents: 12008
diff changeset
34 uninstall-relocwrapper:
40a6cefcc5c9 relocatable-prog-wrapper: Separate from relocatable-prog.
Bruno Haible <bruno@clisp.org>
parents: 12008
diff changeset
35 if test $(RELOCATABLE) = yes; then \
40a6cefcc5c9 relocatable-prog-wrapper: Separate from relocatable-prog.
Bruno Haible <bruno@clisp.org>
parents: 12008
diff changeset
36 case '$(EXEEXT)' in \
40a6cefcc5c9 relocatable-prog-wrapper: Separate from relocatable-prog.
Bruno Haible <bruno@clisp.org>
parents: 12008
diff changeset
37 .bin*) ;; \
40a6cefcc5c9 relocatable-prog-wrapper: Separate from relocatable-prog.
Bruno Haible <bruno@clisp.org>
parents: 12008
diff changeset
38 *) cd $(top_builddir) && \
40a6cefcc5c9 relocatable-prog-wrapper: Separate from relocatable-prog.
Bruno Haible <bruno@clisp.org>
parents: 12008
diff changeset
39 $(MAKE) $(AM_MAKEFLAGS) EXEEXT=.bin$(EXEEXT) \
40a6cefcc5c9 relocatable-prog-wrapper: Separate from relocatable-prog.
Bruno Haible <bruno@clisp.org>
parents: 12008
diff changeset
40 AM_MAKEFLAGS='$(AM_MAKEFLAGS) EXEEXT=.bin$(EXEEXT)' \
40a6cefcc5c9 relocatable-prog-wrapper: Separate from relocatable-prog.
Bruno Haible <bruno@clisp.org>
parents: 12008
diff changeset
41 uninstall ;; \
40a6cefcc5c9 relocatable-prog-wrapper: Separate from relocatable-prog.
Bruno Haible <bruno@clisp.org>
parents: 12008
diff changeset
42 esac; \
40a6cefcc5c9 relocatable-prog-wrapper: Separate from relocatable-prog.
Bruno Haible <bruno@clisp.org>
parents: 12008
diff changeset
43 fi
40a6cefcc5c9 relocatable-prog-wrapper: Separate from relocatable-prog.
Bruno Haible <bruno@clisp.org>
parents: 12008
diff changeset
44 .PHONY: uninstall-relocwrapper
40a6cefcc5c9 relocatable-prog-wrapper: Separate from relocatable-prog.
Bruno Haible <bruno@clisp.org>
parents: 12008
diff changeset
45 endif
8313
bc237f82eb36 Move to here from relocatable.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
46
bc237f82eb36 Move to here from relocatable.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
47 Include:
12008
18ea6ab4e81d maint: make Include sections of modules consistent
Eric Blake <ebb9@byu.net>
parents: 10755
diff changeset
48 "relocatable.h"
18ea6ab4e81d maint: make Include sections of modules consistent
Eric Blake <ebb9@byu.net>
parents: 10755
diff changeset
49 "progname.h"
8313
bc237f82eb36 Move to here from relocatable.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
50
bc237f82eb36 Move to here from relocatable.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
51 License:
bc237f82eb36 Move to here from relocatable.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
52 GPL
bc237f82eb36 Move to here from relocatable.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
53
bc237f82eb36 Move to here from relocatable.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
54 Maintainer:
bc237f82eb36 Move to here from relocatable.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
55 Bruno Haible, Ben Pfaff
bc237f82eb36 Move to here from relocatable.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
56