1 http://bugs.gentoo.org/207148
3 patch by Kevin Pyle to fix parallel build issues
9 $(BUILD_CC) -o makemsg makemsg.c
11 -msg.c gripedefs.h: ../msgs/mess.en makemsg
12 +gripedefs.h: ../msgs/mess.en makemsg
13 ./makemsg ../msgs/mess.en gripedefs.h msg.c
15 +# avoid parallel build issues with makemsg
18 # glob.c does not have prototypes
20 $(CC) -c $(CWARNNP) $(CFLAGS) -I. $(DEFS) glob.c
22 http://bugs.gentoo.org/258916
25 make[2]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
32 ALL = man.1 whatis.1 apropos.1 man.conf.5
34 +MAYBE8 = $(wildcard makewhatis.man)
36 .SUFFIXES: .man .1 .5 .8
39 # Where to put the manual pages.
40 mandir = $(DESTDIR)$(PREFIX)@mandir@$(SLANG)
43 - for i in $(MAYBE8); \
44 - do if test -f $$i.man; then make -f ../Makefile $$i.8; fi; done
45 +all: $(ALL) $(MAYBE8:.man=.8)
48 mkdir -p $(mandir)/man1 $(mandir)/man5 $(mandir)/man8
54 - @for i in @languages@; do if test -d $$i; then echo; \
55 - echo "==== Making the `cat $$i.txt` man pages. ===="; \
56 - cd $$i; make -f ../Makefile; cd ..; \
57 - else echo "==== No $$i man pages found. ===="; fi; done
60 - @for i in @languages@; do if test -d $$i; then echo; \
61 - echo "==== Installing the `cat $$i.txt` man pages. ===="; \
62 - cd $$i; SLANG=/$$i; if test $$SLANG = /en; then SLANG= ; fi; \
63 - export SLANG; make -f ../Makefile install; cd ..; \
64 - else echo "==== No $$i man pages found. ===="; fi; done
65 +MAN_LANGS = $(wildcard @languages@)
66 +subdirs: $(MAN_LANGS:=_lang_subdir)
68 + @echo "==== Making the `cat $(@:_lang_subdir=).txt` man pages. ===="
69 + $(MAKE) -f ../Makefile -C $(@:_lang_subdir=)
71 +installsubdirs: $(MAN_LANGS:=_lang_installsubdir)
72 +%_lang_installsubdir:
73 + @echo "==== Making the `cat $(@:_lang_installsubdir=).txt` man pages. ===="
74 + $(MAKE) -f ../Makefile -C $(@:_lang_installsubdir=) install \
75 + SLANG=`s=$(@:_lang_installsubdir=); test $$s = en || echo /$$s`
78 @for i in ??; do cd $$i; make -f ../Makefile clean; cd ..; done