diff options
author | John-Mark Bell <jmb@netsurf-browser.org> | 2023-09-17 15:05:04 +0100 |
---|---|---|
committer | John-Mark Bell <jmb@netsurf-browser.org> | 2023-09-17 15:06:22 +0100 |
commit | 3e6c0a971c48fa764cc0fd21d5ef5a559c89be96 (patch) | |
tree | 63319ec3bafbe16c1cb37e18fe0a8cd97af9cebb /makefiles/Makefile.top | |
parent | 067a5105a76e51eebcdf7e7786d1f91040442d47 (diff) | |
download | buildsystem-3e6c0a971c48fa764cc0fd21d5ef5a559c89be96.tar.gz buildsystem-3e6c0a971c48fa764cc0fd21d5ef5a559c89be96.tar.bz2 |
makefiles: move __postshared after all
all is the default target and must be the first one in the file.
The lib-shared component type violated this requirement by
declaring __postshared first. Move the __postshared target down
and declare it unconditionally (as it's safe to do so, and these
Makefiles are complex enough already).
Diffstat (limited to 'makefiles/Makefile.top')
-rw-r--r-- | makefiles/Makefile.top | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/makefiles/Makefile.top b/makefiles/Makefile.top index 2a41697..c1a8490 100644 --- a/makefiles/Makefile.top +++ b/makefiles/Makefile.top @@ -216,10 +216,6 @@ endif ifeq ($(COMPONENT_TYPE),lib-shared) POST_TARGETS := __postshared $(POST_TARGETS) - -__postshared: - $(Q)$(LN) $(LNFLAGS) -f -s $(notdir $(OUTPUT)) $(BUILDDIR)/$(SONAME) - $(Q)$(LN) $(LNFLAGS) -f -s $(notdir $(OUTPUT)) $(BUILDDIR)/$(SHAREDLIBNAME) endif # Default target @@ -229,6 +225,10 @@ all: $(PRE_TARGETS) $(OUTPUT) $(POST_TARGETS) test: all $(TEST_PREREQS) $(TEST_BINARIES) $(TEST_TARGETS) $(VQ)$(ECHO) $(ECHOFLAGS) " TEST: Testing complete" +__postshared: + $(Q)$(LN) $(LNFLAGS) -f -s $(notdir $(OUTPUT)) $(BUILDDIR)/$(SONAME) + $(Q)$(LN) $(LNFLAGS) -f -s $(notdir $(OUTPUT)) $(BUILDDIR)/$(SHAREDLIBNAME) + # Compute coverage __precov: __partial_clean $(Q)$(LCOV) --directory . --zerocounters |