Skip to content

Commit efb57cd

Browse files
committed
install-lib does not need to be run in source directories
1 parent a5b1e0c commit efb57cd

File tree

42 files changed

+17
-53
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+17
-53
lines changed

Makefile

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ bindistdir: $(BINDISTFILES)
231231
done
232232

233233
all-recursive clean-recursive distclean-recursive bakclean-recursive \
234-
install-recursive uninstall-recursive install-lib-recursive \
235-
install-include-recursive install-man-recursive uninstall-lib-recursive \
234+
install-recursive uninstall-recursive \
235+
install-include-recursive install-man-recursive \
236236
uninstall-include-recursive uninstall-man-recursive:
237237
@set fnord $(MAKEFLAGS); amf=$$2; \
238238
echo $@ | grep -q install; \
@@ -249,6 +249,19 @@ uninstall-include-recursive uninstall-man-recursive:
249249
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
250250
done && test -z "$$fail"
251251

252+
install-lib-recursive uninstall-lib-recursive:
253+
echo $@ | grep -q install; \
254+
if test $$? = 0 -a "${CROSS}" = yes -a "$(DESTDIR)${prefix}" = "/usr"; then \
255+
echo "attempting to install on host; aborting" >&2; \
256+
exit 1; \
257+
fi; \
258+
list='$(LIBDIRS)'; \
259+
for subdir in $$list; do \
260+
target=`echo $@ | sed s/-recursive//`; \
261+
echo "Making $$target in $$subdir"; \
262+
$(MAKE) -C $$target $$subdir || exit 1; \
263+
done
264+
252265
install-headers-recursive:
253266
if test "${CROSS}" = yes -a "$(DESTDIR)${prefix}" = "/usr"; then \
254267
echo "attempting to install on host; aborting" >&2; \

argp/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ default: all
2626

2727
all-here:
2828

29-
dont_install_libs = yes
3029
include $(top_srcdir)/rules $(top_srcdir)/phony
3130

3231
# FIXME: stratcliff still missing because of missing mman.h.

conf/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ default: all
2626

2727
all-here:
2828

29-
dont_install_libs = yes
3029
include $(top_srcdir)/rules $(top_srcdir)/phony
3130

3231
install-include:

crypt/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ default: all
2828

2929
all-here:
3030

31-
dont_install_libs = yes
3231
include $(top_srcdir)/rules $(top_srcdir)/phony
3332

3433
TESTS = cert md5_1 md5_2 ufc

crypt/examples/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ default: all
2222

2323
all-here:
2424

25-
dont_install_libs = yes
2625
include $(top_srcdir)/rules $(top_srcdir)/phony
2726

2827
install-include:

dirent/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ default: all
2626

2727
all-here:
2828

29-
dont_install_libs = yes
3029
include $(top_srcdir)/rules $(top_srcdir)/phony
3130

3231
TESTS = list opendir seekdir

gmp/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ default: all
2626

2727
all-here:
2828

29-
dont_install_libs = yes
3029
include $(top_srcdir)/rules $(top_srcdir)/phony
3130

3231
install-include:

include/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ all-here: features.h linker.h syscall-list.h
2828

2929
include $(top_srcdir)/phony
3030

31-
dont_install_libs = yes
3231
include $(top_srcdir)/rules
3332

3433
GENSYS = AWK=$(AWK) $(csrcdir)/gensys

include/arpa/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ all-here:
2525

2626
include $(top_srcdir)/phony
2727

28-
dont_install_libs = yes
2928
include $(top_srcdir)/rules
3029

3130
includefiles = $(filter %.h, $(MISCFILES))

include/bits/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ all-here:
2727

2828
include $(top_srcdir)/phony
2929

30-
dont_install_libs = yes
3130
include $(top_srcdir)/rules
3231

3332
includefiles = $(filter %.h, $(MISCFILES))

0 commit comments

Comments
 (0)