[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:
parent
b61b72ca10
commit
2555d51dfc
1 changed files with 6 additions and 0 deletions
|
@ -19,6 +19,11 @@ install-data-hook:
|
||||||
fi \
|
fi \
|
||||||
) \
|
) \
|
||||||
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...";
|
@echo "Installing the $(COMPONENT) control icons if needed...";
|
||||||
@if test -d control; then \
|
@if test -d control; then \
|
||||||
$(INSTALL) -d $(DESTDIR)$(gbdatadir)/control; \
|
$(INSTALL) -d $(DESTDIR)$(gbdatadir)/control; \
|
||||||
|
@ -42,6 +47,7 @@ uninstall-hook:
|
||||||
@rm -rf $(DESTDIR)$(gbdatadir)/info/$(COMPONENT).info
|
@rm -rf $(DESTDIR)$(gbdatadir)/info/$(COMPONENT).info
|
||||||
@rm -rf $(DESTDIR)$(gbdatadir)/info/$(COMPONENT).list
|
@rm -rf $(DESTDIR)$(gbdatadir)/info/$(COMPONENT).list
|
||||||
@rm -rf $(DESTDIR)$(gbdatadir)/control/$(COMPONENT);
|
@rm -rf $(DESTDIR)$(gbdatadir)/control/$(COMPONENT);
|
||||||
|
@rm -rf $(DESTDIR)$(gbdatadir)/$(COMPONENT);
|
||||||
|
|
||||||
dist-hook:
|
dist-hook:
|
||||||
@if test -d $(COMPONENT); then \
|
@if test -d $(COMPONENT); then \
|
||||||
|
|
Loading…
Reference in a new issue