Skip to content

Commit 54d1184

Browse files
committed
Release 0.5.8
* Fixed excessive header installation with proper one. * Fixed installation and deinstallation of shared object and library files. * Added `make distsrc` target to build tarball with all required source code.
2 parents 5fa84f1 + 7ab1da2 commit 54d1184

File tree

7 files changed

+48
-11
lines changed

7 files changed

+48
-11
lines changed

CHANGELOG

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
* RECENT CHANGES
33
*******************************************************************************
44

5+
=== 0.5.8 ===
6+
* Fixed excessive header installation with proper one.
7+
* Fixed installation and deinstallation of shared object and library files.
8+
* Added `make distsrc` target to build tarball with all required source code.
9+
510
=== 0.5.7 ===
611
* Updated makefiles: added `make tree` target.
712

Makefile

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,11 @@ include $(BASEDIR)/project.mk
3737

3838
# Setup paths
3939
CHK_CONFIG = test -f "$(CONFIG)" || (echo "System not properly configured. Please launch 'make config' first" && exit 1)
40+
DISTSRC_PATH = $(BUILDDIR)/.distsrc
41+
DISTSRC = $(DISTSRC_PATH)/$(ARTIFACT_NAME)
4042

4143
.DEFAULT_GOAL := all
42-
.PHONY: all compile install uninstall depend clean chkconfig
44+
.PHONY: all compile install uninstall depend clean
4345

4446
compile all install uninstall depend:
4547
@$(CHK_CONFIG)
@@ -60,7 +62,7 @@ fetch:
6062

6163
tree:
6264
@echo "Fetching all possible source code dependencies"
63-
@$(MAKE) -s -f "make/modules.mk" $(@) BASEDIR="$(BASEDIR)" CONFIG="$(CONFIG)" TREE="1"
65+
@$(MAKE) -s -f "make/modules.mk" $(@) BASEDIR="$(BASEDIR)" TREE="1"
6466
@echo "Fetch OK"
6567

6668
prune: clean
@@ -71,20 +73,39 @@ prune: clean
7173
@echo "Prune OK"
7274

7375
# Configuration-related targets
74-
.PHONY: config help
76+
.PHONY: config help chkconfig
7577

7678
testconfig:
7779
@$(MAKE) -s -f "$(BASEDIR)/make/configure.mk" $(@) CONFIG="$(CONFIG)" TEST="1" $(MAKEFLAGS)
7880

7981
config:
8082
@$(MAKE) -s -f "$(BASEDIR)/make/configure.mk" $(@) CONFIG="$(CONFIG)" $(MAKEFLAGS)
8183

84+
# Release-related targets
85+
.PHONY: distsrc
86+
distsrc:
87+
@echo "Building source code archive"
88+
@mkdir -p "$(DISTSRC)/modules"
89+
@$(MAKE) -s -f "make/modules.mk" tree BASEDIR="$(BASEDIR)" MODULES="$(DISTSRC)/modules" TREE="1"
90+
@cp -R $(BASEDIR)/include $(BASEDIR)/make $(BASEDIR)/src "$(DISTSRC)/"
91+
@cp $(BASEDIR)/CHANGELOG $(BASEDIR)/COPYING* $(BASEDIR)/Makefile $(BASEDIR)/*.mk "$(DISTSRC)/"
92+
@find "$(DISTSRC)" -iname '.git' | xargs -exec rm -rf {}
93+
@find "$(DISTSRC)" -iname '.gitignore' | xargs -exec rm -rf {}
94+
@tar -C $(DISTSRC_PATH) -czf "$(BUILDDIR)/$(ARTIFACT_NAME)-$(ARTIFACT_VERSION)-src.tar.gz" "$(ARTIFACT_NAME)"
95+
@echo "Created archive: $(BUILDDIR)/$(ARTIFACT_NAME)-$(ARTIFACT_VERSION)-src.tar.gz"
96+
@ln -sf "$(ARTIFACT_NAME)-$(ARTIFACT_VERSION)-src.tar.gz" "$(BUILDDIR)/$(ARTIFACT_NAME)-src.tar.gz"
97+
@echo "Created symlink: $(BUILDDIR)/$(ARTIFACT_NAME)-src.tar.gz"
98+
@rm -rf $(DISTSRC_PATH)
99+
@echo "Build OK"
100+
101+
# Help
82102
help:
83103
@echo "Available targets:"
84104
@echo " all Build all binaries"
85105
@echo " clean Clean all build files and configuration file"
86106
@echo " config Configure build"
87107
@echo " depend Update build dependencies for current project"
108+
@echo " distsrc Make tarball with source code for packagers"
88109
@echo " fetch Fetch all desired source code dependencies from git"
89110
@echo " help Print this help message"
90111
@echo " info Output build configuration"

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@ different architectures and platforms, run:
105105
make tree
106106
```
107107

108+
To build source code archive with all possible dependencies, run:
109+
110+
```bash
111+
make distsrc
112+
```
113+
108114
Usage
109115
======
110116

include/lsp-plug.in/dsp/version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
// Define version of headers
2626
#define LSP_DSP_LIB_MAJOR 0
2727
#define LSP_DSP_LIB_MINOR 5
28-
#define LSP_DSP_LIB_MICRO 7
28+
#define LSP_DSP_LIB_MICRO 8
2929

3030
#ifdef LSP_DSP_LIB_BUILTIN
3131
#define LSP_DSP_LIB_CPPEXPORT

make/modules.mk

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ BASEDIR := $(CURDIR)
2222
CONFIG := $(CURDIR)/.config.mk
2323

2424
include $(BASEDIR)/dependencies.mk
25-
-include $(CONFIG)
25+
ifneq ($(TREE),1)
26+
include $(CONFIG)
27+
endif
2628
include $(BASEDIR)/project.mk
2729

2830
SYS_DEPENDENCIES = $(DEPENDENCIES) $(TEST_DEPENDENCIES)

project.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ARTIFACT_DESC = DSP library for digital signal processing
2323
ARTIFACT_NAME = lsp-dsp-lib
2424
ARTIFACT_VARS = LSP_DSP_LIB
2525
ARTIFACT_HEADERS = lsp-plug.in
26-
ARTIFACT_VERSION = 0.5.7
26+
ARTIFACT_VERSION = 0.5.8
2727

2828
# List of dependencies
2929
DEPENDENCIES = \

src/Makefile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ CXX_OBJEXT = $(patsubst %.cpp, $($(ARTIFACT_VARS)_BIN)/%.o, $(CXX_S
3636

3737
ALL_HEADERS = $(call rwildcard, $($(ARTIFACT_VARS)_INC), *.h)
3838
CXX_FILE = $(patsubst $($(ARTIFACT_VARS)_BIN)/%.o,%.cpp, $(@))
39-
CXX_HEADERS = $(foreach hdr,$(ARTIFACT_HEADERS),$(call rwildcard, $($(ARTIFACT_VARS)_INC)/$(hdr), *.h))
39+
CXX_HDR_PATHS = $(foreach hdr,$(ARTIFACT_HEADERS),$($(ARTIFACT_VARS)_INC)/$(hdr))
40+
CXX_HEADERS = $(foreach path,$(CXX_HDR_PATHS),$(call rwildcard, $(path), *.h))
4041
CXX_INSTHEADERS = $(patsubst $($(ARTIFACT_VARS)_INC)/%,$(DESTDIR)$(INCDIR)/%,$(CXX_HEADERS))
4142

4243
ARTIFACT_BIN = $($(ARTIFACT_VARS)_BIN)
@@ -181,21 +182,23 @@ install: all
181182
@echo "Installing $($(ARTIFACT_VARS)_NAME)"
182183
@mkdir -p "$(DESTDIR)$(INCDIR)"
183184
@mkdir -p "$(DESTDIR)$(LIBDIR)/pkgconfig"
184-
@cp -r $($(ARTIFACT_VARS)_INC)/* "$(DESTDIR)$(INCDIR)/"
185+
@cp -r "$(CXX_HDR_PATHS)" "$(DESTDIR)$(INCDIR)/"
185186
@cp $(ARTIFACT_PC) "$(DESTDIR)$(LIBDIR)/pkgconfig/"
186-
@echo $(INSTALL) $(ARTIFACT_LIB) $(ARTIFACT_SLIB) -t "$(DESTDIR)$(LIBDIR)"
187-
@$(INSTALL) $(ARTIFACT_LIB) $(ARTIFACT_SLIB) -t "$(DESTDIR)$(LIBDIR)"
187+
@echo $(INSTALL) $(ARTIFACT_LIB) -t "$(DESTDIR)$(LIBDIR)"
188+
@$(INSTALL) $(ARTIFACT_LIB) -t "$(DESTDIR)$(LIBDIR)"
189+
@echo cp $(ARTIFACT_SLIB) -t "$(DESTDIR)$(LIBDIR)"
190+
@cp $(ARTIFACT_SLIB) -t "$(DESTDIR)$(LIBDIR)"
188191
@ln -sf $(notdir $(ARTIFACT_LIB)) "$(DESTDIR)$(LIBDIR)/$(ARTIFACT_LIBLINK)"
189192
@ln -sf $(notdir $(ARTIFACT_SLIB)) "$(DESTDIR)$(LIBDIR)/$(ARTIFACT_SLIBLINK)"
190193
@echo "Install OK"
191194

192195
uninstall:
193196
@echo "Uninstalling $($(ARTIFACT_VARS)_NAME)"
194197
@-rm -f "$(DESTDIR)$(LIBDIR)/$(notdir $(ARTIFACT_LIB))"
198+
@-rm -f "$(DESTDIR)$(LIBDIR)/$(notdir $(ARTIFACT_SLIB))"
195199
@-rm -f "$(DESTDIR)$(LIBDIR)/$(ARTIFACT_LIBLINK)"
196200
@-rm -f "$(DESTDIR)$(LIBDIR)/$(ARTIFACT_SLIBLINK)"
197201
@-rm -f "$(DESTDIR)$(LIBDIR)/pkgconfig/$(notdir $(ARTIFACT_PC))"
198-
@echo rm -f $(CXX_INSTHEADERS)
199202
@-rm -f $(CXX_INSTHEADERS)
200203
@echo "Uninstall OK"
201204

0 commit comments

Comments
 (0)