[CONFIGURATION]

* NEW: Add the possibility for a component in C/C++ to install custom data files.

These files must be provided into a "data" folder created in the component source directory.
Also this line must be added in the Makefile.am file:
EXTRA_DIST = data

Datas are installed in the $(DESTDIR)$(gbdatadir)/$(COMPONENT) dir
eg : /usr/local/share/gambas3/gb.sdl



git-svn-id: svn://localhost/gambas/trunk@3337 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Laurent Carlier 2010-11-30 14:16:43 +00:00
parent b61b72ca10
commit 2555d51dfc

View file

@ -19,6 +19,11 @@ install-data-hook:
fi \
) \
fi
@if test -d data; then \
@echo "Installing the $(COMPONENT) extra data files...";
$(INSTALL) -d $(DESTDIR)$(gbdatadir)/$(COMPONENT); \
$(INSTALL) data/* $(DESTDIR)$(gbdatadir)/$(COMPONENT); \
fi
@echo "Installing the $(COMPONENT) control icons if needed...";
@if test -d control; then \
$(INSTALL) -d $(DESTDIR)$(gbdatadir)/control; \
@ -42,6 +47,7 @@ uninstall-hook:
@rm -rf $(DESTDIR)$(gbdatadir)/info/$(COMPONENT).info
@rm -rf $(DESTDIR)$(gbdatadir)/info/$(COMPONENT).list
@rm -rf $(DESTDIR)$(gbdatadir)/control/$(COMPONENT);
@rm -rf $(DESTDIR)$(gbdatadir)/$(COMPONENT);
dist-hook:
@if test -d $(COMPONENT); then \