Get component controls icons both from its 'control' directory and the optional associated Gambas project of the same name.
[CONFIGURATION] * NEW: Get component controls icons both from its 'control' directory and the optional associated Gambas project of the same name.
This commit is contained in:
parent
492a394ca0
commit
bda833aa3e
1 changed files with 12 additions and 10 deletions
22
component.am
22
component.am
|
@ -4,7 +4,7 @@ dist_gblib_DATA = $(COMPONENT).component
|
||||||
install-data-hook:
|
install-data-hook:
|
||||||
@$(INSTALL) -d $(DESTDIR)$(gbdatadir)/info
|
@$(INSTALL) -d $(DESTDIR)$(gbdatadir)/info
|
||||||
@rm -f $(DESTDIR)$(gblibdir)/$(COMPONENT).gambas;
|
@rm -f $(DESTDIR)$(gblibdir)/$(COMPONENT).gambas;
|
||||||
@if test -d $(COMPONENT) && test -e $(COMPONENT)/.project ; then \
|
@if test -d $(COMPONENT) && test -e $(COMPONENT)/.project; then \
|
||||||
echo; \
|
echo; \
|
||||||
echo "Compiling '$(COMPONENT)' component..."; \
|
echo "Compiling '$(COMPONENT)' component..."; \
|
||||||
( \
|
( \
|
||||||
|
@ -27,16 +27,18 @@ install-data-hook:
|
||||||
$(INSTALL) data/* $(DESTDIR)$(gbdatadir)/$(COMPONENT); \
|
$(INSTALL) data/* $(DESTDIR)$(gbdatadir)/$(COMPONENT); \
|
||||||
fi
|
fi
|
||||||
@rm -rf $(DESTDIR)$(gbdatadir)/control/$(COMPONENT);
|
@rm -rf $(DESTDIR)$(gbdatadir)/control/$(COMPONENT);
|
||||||
@if test -d control; then \
|
@if test -d control -o -d $(COMPONENT)/.hidden/control; then \
|
||||||
echo "Installing '$(COMPONENT)' control icons..."; \
|
echo "Installing '$(COMPONENT)' control icons..."; \
|
||||||
$(INSTALL) -d $(DESTDIR)$(gbdatadir)/control; \
|
if test -d control; then \
|
||||||
$(INSTALL) -d $(DESTDIR)$(gbdatadir)/control/$(COMPONENT); \
|
$(INSTALL) -d $(DESTDIR)$(gbdatadir)/control; \
|
||||||
$(INSTALL) control/*.png $(DESTDIR)$(gbdatadir)/control/$(COMPONENT); \
|
$(INSTALL) -d $(DESTDIR)$(gbdatadir)/control/$(COMPONENT); \
|
||||||
fi
|
$(INSTALL) control/*.png $(DESTDIR)$(gbdatadir)/control/$(COMPONENT); \
|
||||||
@if test -d $(COMPONENT)/.hidden/control; then \
|
fi; \
|
||||||
$(INSTALL) -d $(DESTDIR)$(gbdatadir)/control; \
|
if test -d $(COMPONENT)/.hidden/control; then \
|
||||||
$(INSTALL) -d $(DESTDIR)$(gbdatadir)/control/$(COMPONENT); \
|
$(INSTALL) -d $(DESTDIR)$(gbdatadir)/control; \
|
||||||
$(INSTALL) $(COMPONENT)/.hidden/control/*.png $(DESTDIR)$(gbdatadir)/control/$(COMPONENT); \
|
$(INSTALL) -d $(DESTDIR)$(gbdatadir)/control/$(COMPONENT); \
|
||||||
|
$(INSTALL) $(COMPONENT)/.hidden/control/*.png $(DESTDIR)$(gbdatadir)/control/$(COMPONENT); \
|
||||||
|
fi \
|
||||||
fi
|
fi
|
||||||
@echo "Creating the information files for '$(COMPONENT)' component..."
|
@echo "Creating the information files for '$(COMPONENT)' component..."
|
||||||
@if test "$(EXTRACT_HELP)" = "1"; then \
|
@if test "$(EXTRACT_HELP)" = "1"; then \
|
||||||
|
|
Loading…
Reference in a new issue