gambas-source-code/component.am
Benoît Minisini 17a0748815 [CONFIGURATION]
* NEW: Each component installation now generates all information files
  systematically, to fix possible dependencies between components written
  in Gambas.

[DEVELOPMENT ENVIRONMENT]
* NEW: Running a project using the 'gb.web' component now automatically
  starts the embedded HTTP server.

[INTERPRETER]
* NEW: Class overriding is retrospective now.
* NEw: System._Breakpoint() is a new hidden method that raises a 
  breakpoint. Very useful for debugging.

[GB.GTK]
* BUG: The Action.Register() method must not crash when called during class 
  clean-up.

[GB.HTTPD]
* NEW: Define a custom exported HTTP server name.

[GB.JIT]
* BEW: Support for new class overriding (the CLASS structure has lost one 
  field).

[GB.QT4]
* BUG: The Action.Register() method must not crash when called during class 
  clean-up.


git-svn-id: svn://localhost/gambas/trunk@5240 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-14 22:42:53 +00:00

60 lines
2.3 KiB
Text

dist_gblib_DATA = $(COMPONENT).component
gblib_DATA = $(COMPONENT).component
install-data-hook:
@$(INSTALL) -d $(DESTDIR)$(gbdatadir)/info
@if test -d $(COMPONENT) && test -e $(COMPONENT)/.project ; then \
echo; \
echo "Compiling the $(COMPONENT) project..."; \
( \
$(DESTDIR)$(bindir)/gbi$(GAMBAS_VERSION) -r $(DESTDIR)$(prefix) $(COMPONENT); \
cd $(COMPONENT); \
$(DESTDIR)$(bindir)/gbc$(GAMBAS_VERSION) -ag -r $(DESTDIR)$(prefix); \
if test $$? -eq 0; then \
$(DESTDIR)$(bindir)/gba$(GAMBAS_VERSION); \
rm -rf .gambas; \
$(INSTALL) $(COMPONENT).gambas $(DESTDIR)$(gblibdir); \
else \
echo "|| Unable to compile $(COMPONENT)" >> ../../../warnings.log; \
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; \
$(INSTALL) -d $(DESTDIR)$(gbdatadir)/control/$(COMPONENT); \
$(INSTALL) control/*.png $(DESTDIR)$(gbdatadir)/control/$(COMPONENT); \
fi
@if test -d $(COMPONENT)/.hidden/control; then \
$(INSTALL) -d $(DESTDIR)$(gbdatadir)/control; \
$(INSTALL) -d $(DESTDIR)$(gbdatadir)/control/$(COMPONENT); \
$(INSTALL) $(COMPONENT)/.hidden/control/*.png $(DESTDIR)$(gbdatadir)/control/$(COMPONENT); \
fi
@echo "Creating the information files for $(COMPONENT) component..."
@$(DESTDIR)$(bindir)/gbi$(GAMBAS_VERSION) -r $(DESTDIR)$(prefix) > /dev/null
@echo
uninstall-hook:
@if test -d $(COMPONENT); then \
rm -f $(DESTDIR)$(gblibdir)/$(COMPONENT).gambas; \
fi
@rm -rf $(DESTDIR)$(gblibdir)$(COMPONENT).component
@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 \
( \
cp -pR $(COMPONENT) $(distdir)/$(COMPONENT); \
cd $(distdir)/$(COMPONENT); \
rm -rf .gambas .action .xvpics */.xvpics */*/.xvpics *~ */*~ */*/*~ *.out .*.out .lang/*.pot *.gambas core.* .svn */.svn */*/.svn */*/*/.svn; \
) \
fi
@rm -f $(distdir)/moc_*.cpp