45 |
$(timestamp); \ |
$(timestamp); \ |
46 |
input="libtoolize.m4sh"; \ |
input="libtoolize.m4sh"; \ |
47 |
$(edit) -e "s,@TIMESTAMP\@,$$TIMESTAMP,g" \ |
$(edit) -e "s,@TIMESTAMP\@,$$TIMESTAMP,g" \ |
48 |
-e 's,@nobase_pkgvdata_DATA\@,$(nobase_pkgvdata_DATA),g' \ |
-e 's,@aclocal_DATA\@,$(aclocalfiles),g' \ |
49 |
-e "s,@pkgvltdl_files\@,`echo $(ltdldatafiles)`,g" \ |
-e "s,@pkgltdl_files\@,$(ltdldatafiles),g" \ |
50 |
$(srcdir)/libtoolize.in > libtoolize.tmp |
$(srcdir)/libtoolize.in > libtoolize.tmp |
51 |
chmod a+x libtoolize.tmp |
chmod a+x libtoolize.tmp |
52 |
chmod a-w libtoolize.tmp |
chmod a-w libtoolize.tmp |
93 |
-e 's,@VERSION\@,$(VERSION),g' \ |
-e 's,@VERSION\@,$(VERSION),g' \ |
94 |
-e 's,@aclocaldir\@,$(aclocaldir),g' \ |
-e 's,@aclocaldir\@,$(aclocaldir),g' \ |
95 |
-e 's,@datadir\@,$(datadir),g' \ |
-e 's,@datadir\@,$(datadir),g' \ |
96 |
|
-e 's,@pkgdatadir\@,$(pkgdatadir),g' \ |
97 |
-e 's,@host_triplet\@,$(host_triplet),g' \ |
-e 's,@host_triplet\@,$(host_triplet),g' \ |
|
-e 's,@pkgvdatadir\@,$(pkgvdatadir),g' \ |
|
98 |
-e 's,@prefix\@,$(prefix),g' \ |
-e 's,@prefix\@,$(prefix),g' \ |
99 |
-e "s,@configure_input\@,Generated from $$input; do not edit by hand,g" |
-e "s,@configure_input\@,Generated from $$input; do not edit by hand,g" |
100 |
|
|
116 |
# These are required by libtoolize and must be executable when installed. |
# These are required by libtoolize and must be executable when installed. |
117 |
# Since _SCRIPTS gets the program transform applied we make them |
# Since _SCRIPTS gets the program transform applied we make them |
118 |
# executable by hand |
# executable by hand |
119 |
nobase_dist_pkgvdata_DATA = config/config.guess config/config.sub \ |
nobase_dist_pkgdata_DATA = config/config.guess config/config.sub \ |
120 |
config/ltmain.sh config/install-sh |
config/ltmain.sh config/install-sh |
121 |
|
|
122 |
# Everything that gets picked up by aclocal is automatically distributed, |
# Everything that gets picked up by aclocal is automatically distributed, |
123 |
# this is the list of macro files we install on the user's system. |
# this is the list of macro files we install on the user's system. |
124 |
nobase_pkgvdata_DATA = m4/argz.m4 m4/libtool.m4 m4/ltdl.m4 \ |
aclocalfiles = m4/argz.m4 m4/libtool.m4 m4/ltdl.m4 \ |
125 |
m4/ltoptions.m4 m4/ltsugar.m4 m4/ltversion.m4 |
m4/ltoptions.m4 m4/ltsugar.m4 m4/ltversion.m4 |
126 |
|
|
127 |
## We know that $(srcdir)/ChangeLog has been edited if stamp-vcl |
## We know that $(srcdir)/ChangeLog has been edited if stamp-vcl |
210 |
|
|
211 |
## These are installed as a subdirectory of pkgdatadir so that |
## These are installed as a subdirectory of pkgdatadir so that |
212 |
## libtoolize --ltdl can find them later: |
## libtoolize --ltdl can find them later: |
213 |
ltdldatadir = $(pkgvdatadir)/libltdl |
ltdldatadir = $(pkgdatadir)/libltdl |
214 |
ltdldatafiles = COPYING.LIB README \ |
ltdldatafiles = COPYING.LIB README \ |
215 |
Makefile.am Makefile.in \ |
Makefile.am Makefile.in \ |
216 |
argz_.h argz.c \ |
argz_.h argz.c \ |
240 |
slist.c |
slist.c |
241 |
|
|
242 |
install-data-local: |
install-data-local: |
243 |
## Don't install over the top of an old pkgvdatadir |
## Don't install over the top of an old pkgdatadir |
|
-rm -rf $(DESTDIR)$(pkgvdatadir) |
|
|
## Remove old pkgdatadir |
|
244 |
-rm -rf $(DESTDIR)$(pkgdatadir) |
-rm -rf $(DESTDIR)$(pkgdatadir) |
|
## Remove old macro definitions |
|
|
-rm -rf $(DESTDIR)$(aclocaldir)/ltdl.m4 |
|
|
-rm -rf $(DESTDIR)$(aclocaldir)/libtool.m4 |
|
245 |
## To avoid spurious reconfiguration when the user installs these files |
## To avoid spurious reconfiguration when the user installs these files |
246 |
## with libtoolize, we have to preserve their timestamps carefully: |
## with libtoolize, we have to preserve their timestamps carefully: |
247 |
$(mkinstalldirs) $(DESTDIR)$(ltdldatadir) |
$(mkinstalldirs) $(DESTDIR)$(ltdldatadir) |
248 |
( cd $(srcdir)/libltdl && $(AMTAR) chf - $(ltdldatafiles); ) \ |
( cd $(srcdir)/libltdl && $(AMTAR) chf - $(ltdldatafiles); ) \ |
249 |
| ( umask 0 && cd $(DESTDIR)$(ltdldatadir) && $(AMTAR) xf -; ) |
| ( umask 0 && cd $(DESTDIR)$(ltdldatadir) && $(AMTAR) xf -; ) |
250 |
|
$(mkinstalldirs) $(DESTDIR)$(aclocaldir) |
251 |
|
@for p in $(aclocalfiles); do \ |
252 |
|
f=`echo "$$p" | sed 's|^.*/||'`; \ |
253 |
|
aclocalfiles="$$aclocalfiles $$f"; \ |
254 |
|
done; \ |
255 |
|
( cd $(srcdir)/m4 && $(AMTAR) chf - $$aclocalfiles; ) \ |
256 |
|
| ( umask 0 && cd $(DESTDIR)$(aclocaldir) && $(AMTAR) xf -; ) |
257 |
|
|
258 |
install-data-hook: |
install-data-hook: |
259 |
chmod +x $(DESTDIR)$(pkgvdatadir)/config/config.guess |
chmod +x $(DESTDIR)$(pkgdatadir)/config/config.guess |
260 |
chmod +x $(DESTDIR)$(pkgvdatadir)/config/config.sub |
chmod +x $(DESTDIR)$(pkgdatadir)/config/config.sub |
261 |
chmod +x $(DESTDIR)$(pkgvdatadir)/config/install-sh |
chmod +x $(DESTDIR)$(pkgdatadir)/config/install-sh |
262 |
|
|
263 |
|
|
264 |
## ------------- ## |
## ------------- ## |
265 |
## Distribution. ## |
## Distribution. ## |
266 |
## ------------- ## |
## ------------- ## |
267 |
|
|
|
## Make versioned links. We only run the transform on the root name; |
|
|
## then we make a versioned link with the transformed base name. This |
|
|
## seemed like the most reasonable approach. |
|
|
install-exec-hook: |
|
|
@$(POST_INSTALL) |
|
|
@for p in $(bin_SCRIPTS); do \ |
|
|
f="`echo $$p|sed '$(transform)'`"; \ |
|
|
fv="$$f-$(APIVERSION)"; \ |
|
|
rm -f $(DESTDIR)$(bindir)/$$fv; \ |
|
|
echo " $(LN) $(DESTDIR)$(bindir)/$$f $(DESTDIR)$(bindir)/$$fv"; \ |
|
|
$(LN) $(DESTDIR)$(bindir)/$$f $(DESTDIR)$(bindir)/$$fv; \ |
|
|
done |
|
|
|
|
268 |
uninstall-hook: |
uninstall-hook: |
|
@for p in $(bin_SCRIPTS); do \ |
|
|
f="`echo $$p|sed '$(transform)'`"; \ |
|
|
fv="$$f-$(APIVERSION)"; \ |
|
|
rm -f $(DESTDIR)$(bindir)/$$fv; \ |
|
|
done |
|
269 |
@for f in $(ltdldatafiles); do \ |
@for f in $(ltdldatafiles); do \ |
270 |
echo " rm -rf '$(DESTDIR)$(ltdldatadir)/$$f'"; \ |
echo " rm -rf '$(DESTDIR)$(ltdldatadir)/$$f'"; \ |
271 |
rm -f "$(DESTDIR)$(ltdldatadir)/$$f"; \ |
rm -f "$(DESTDIR)$(ltdldatadir)/$$f"; \ |
272 |
done |
done |
273 |
|
@for p in $(aclocalfiles); do \ |
274 |
|
f=`echo "$$p" | sed 's|^.*/||'`; \ |
275 |
|
echo " rm -rf '$(DESTDIR)$(aclocaldir)/$$f'"; \ |
276 |
|
rm -f "$(DESTDIR)$(aclocaldir)/$$f"; \ |
277 |
|
done; |
278 |
|
|
279 |
|
|
280 |
## Ship README.alpha only in alpha release, but renamed to README |
## Ship README.alpha only in alpha release, but renamed to README |