Skip to content

Commit

Permalink
Always add compiler options (COPT) in builds
Browse files Browse the repository at this point in the history
When running "make warnings" inside a subdirectory, COPT was not taken
into account.  It was only when run at top-level.
  • Loading branch information
Julien-Elie committed Jul 8, 2023
1 parent e370638 commit ea68c8c
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion authprogs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ SOURCES = auth_krb5.c ckpasswd.c domain.c ident.c libinnauth.c radius.c
all: $(ALL)

warnings:
$(MAKE) COPT='$(WARNINGS)' all
$(MAKE) COPT="$(COPT) $(WARNINGS)" all

install: all
if [ x"$(KRB5_AUTH)" != x ] ; then \
Expand Down
2 changes: 1 addition & 1 deletion backends/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ SOURCES = actsync.c archive.c batcher.c buffchan.c cvtbatch.c \
all: $(ALL) $(MAN)

warnings:
$(MAKE) COPT='$(WARNINGS)' all
$(MAKE) COPT="$(COPT) $(WARNINGS)" all

install: all
for F in actmerge actsyncd news2mail nntpsend send-ihave \
Expand Down
2 changes: 1 addition & 1 deletion contrib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ALL = analyze-traffic archivegz authmysql auth_pass backlogstat \
all: $(ALL)

warnings:
$(MAKE) COPT='$(WARNINGS)' all
$(MAKE) COPT="$(COPT) $(WARNINGS)" all

clean clobber distclean maintclean:
rm -f *.o $(ALL)
Expand Down
2 changes: 1 addition & 1 deletion control/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ SOURCES = gencancel.c
all: $(ALL) $(MAN)

warnings:
$(MAKE) COPT='$(WARNINGS)' all
$(MAKE) COPT="$(COPT) $(WARNINGS)" all

install: all
$(LI_XPRI) gencancel $D$(PATHBIN)/gencancel
Expand Down
2 changes: 1 addition & 1 deletion expire/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ SOURCES = convdate.c expire.c expireover.c fastrm.c grephistory.c \
all: $(ALL)

warnings:
$(MAKE) COPT='$(WARNINGS)' all
$(MAKE) COPT="$(COPT) $(WARNINGS)" all

install: all
for F in convdate fastrm grephistory ; do \
Expand Down
4 changes: 2 additions & 2 deletions frontends/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ PATHRNEWS = $(PATHBIN)/rnews.libexec
all: $(ALL) $(MAN)

optional:
$(MAKE) COPT='$(WARNINGS)' $(OPTIONAL)
$(MAKE) COPT="$(COPT) $(WARNINGS)" $(OPTIONAL)

warnings:
$(MAKE) COPT='$(WARNINGS)' all
$(MAKE) COPT="$(COPT) $(WARNINGS)" all

install: all
$(LI_INEWS) inews $D$(PATHBIN)/inews
Expand Down
2 changes: 1 addition & 1 deletion history/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ all: library programs
include Make.methods

warnings:
$(MAKE) COPT='$(WARNINGS)' all
$(MAKE) COPT="$(COPT) $(WARNINGS)" all

install: all
$(LI_LPUB) libinnhist.$(EXTLIB) $D$(PATHLIB)/libinnhist.$(EXTLIB)
Expand Down
2 changes: 1 addition & 1 deletion innd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ OBJECTS = $(SOURCES:.c=.o)
all: $(ALL)

warnings:
$(MAKE) COPT='$(WARNINGS)' all
$(MAKE) COPT="$(COPT) $(WARNINGS)" all

install: all
$(LI_XPRI) innd $D$(PATHBIN)/innd
Expand Down
2 changes: 1 addition & 1 deletion innfeed/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ OBJECTS = article.o buffer.o config_l.o config_y.o endpoint.o host.o \
all: $(ALL)

warnings:
$(MAKE) COPT='$(WARNINGS)' all
$(MAKE) COPT="$(COPT) $(WARNINGS)" all

install: all
$(LI_XPRI) innfeed $D$(PATHBIN)/innfeed
Expand Down
2 changes: 1 addition & 1 deletion lib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ LOBJECTS = $(OBJECTS:.o=.lo)
all: libinn.$(EXTLIB) canlock.o perl.o

warnings:
$(MAKE) COPT='$(WARNINGS)' all
$(MAKE) COPT="$(COPT) $(WARNINGS)" all

install: all
$(LI_LPUB) libinn.$(EXTLIB) $D$(PATHLIB)/libinn.$(EXTLIB)
Expand Down
2 changes: 1 addition & 1 deletion nnrpd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ OBJECTS = $(SOURCES:.c=.o)
all: $(ALL)

warnings:
$(MAKE) COPT='$(WARNINGS)' all
$(MAKE) COPT="$(COPT) $(WARNINGS)" all

install: all
$(LI_XPUB) nnrpd $D$(PATHBIN)/nnrpd
Expand Down
2 changes: 1 addition & 1 deletion storage/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ FIX = $(SHELL) $(FIXSCRIPT)
include Make.methods

warnings:
$(MAKE) COPT='$(WARNINGS)' all
$(MAKE) COPT="$(COPT) $(WARNINGS)" all

install: all
$(LI_LPUB) libinnstorage.$(EXTLIB) $D$(PATHLIB)/libinnstorage.$(EXTLIB)
Expand Down
2 changes: 1 addition & 1 deletion tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ all check test tests: $(TESTS) $(EXTRA)
build: $(TESTS) $(EXTRA)

warnings:
$(MAKE) COPT='$(WARNINGS)' build
$(MAKE) COPT="$(COPT) $(WARNINGS)" build

clean clobber distclean maintclean:
rm -f *.o *.lo */*.o */*.lo */*/*.o */*/*.o \
Expand Down

0 comments on commit ea68c8c

Please sign in to comment.