* Makefile.in: (snapshot): Add target.
	* lib/Makefile.in: (install-headers): Use installdir variable.
	(installdir): Set value based on target-alias.
This commit is contained in:
Earnie Boyd
2001-03-01 20:32:34 +00:00
parent 35fc781b4b
commit 4124e827f2
3 changed files with 20 additions and 3 deletions

View File

@@ -35,7 +35,11 @@ tooldir:=$(exec_prefix)/$(target_alias)
endif
datadir = @datadir@
infodir = @infodir@
ifneq (,$(findstring cygwin,$(target_alias)))
includedir = $(tooldir)/include/w32api
else
includedir = @includedir@
endif
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
@@ -144,9 +148,9 @@ install-libraries: all
done
install-headers:
$(mkinstalldirs) $(tooldir)/include/w32api
$(mkinstalldirs) $(includedir)
for i in $(HEADERS); do \
$(INSTALL_DATA) $(srcdir)/../include/$$i $(tooldir)/include/w32api/$$i ; \
$(INSTALL_DATA) $(srcdir)/../include/$$i $(includedir)/$$i ; \
done
# uninstall headers and libraries from a target specified directory