Skip to content

Commit 2289e11

Browse files
committed
Merge branch 'github-issue-13' into devel
* Fixed excessive header installation with proper one.
2 parents 9c3463f + d5ea347 commit 2289e11

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*******************************************************************************
44

55
=== 0.5.8 ===
6+
* Fixed excessive header installation with proper one.
67

78
=== 0.5.7 ===
89
* Updated makefiles: added `make tree` target.

src/Makefile

Lines changed: 3 additions & 3 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,7 +182,7 @@ 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/"
186187
@echo $(INSTALL) $(ARTIFACT_LIB) $(ARTIFACT_SLIB) -t "$(DESTDIR)$(LIBDIR)"
187188
@$(INSTALL) $(ARTIFACT_LIB) $(ARTIFACT_SLIB) -t "$(DESTDIR)$(LIBDIR)"
@@ -195,7 +196,6 @@ uninstall:
195196
@-rm -f "$(DESTDIR)$(LIBDIR)/$(ARTIFACT_LIBLINK)"
196197
@-rm -f "$(DESTDIR)$(LIBDIR)/$(ARTIFACT_SLIBLINK)"
197198
@-rm -f "$(DESTDIR)$(LIBDIR)/pkgconfig/$(notdir $(ARTIFACT_PC))"
198-
@echo rm -f $(CXX_INSTHEADERS)
199199
@-rm -f $(CXX_INSTHEADERS)
200200
@echo "Uninstall OK"
201201

0 commit comments

Comments
 (0)