2007-12-30 17:41:49 +01:00
|
|
|
dist_gblib_DATA = $(COMPONENT).component
|
2022-10-08 10:21:21 +02:00
|
|
|
## gblib_DATA = $(COMPONENT).component
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
install-data-hook:
|
|
|
|
@$(INSTALL) -d $(DESTDIR)$(gbdatadir)/info
|
2012-11-13 23:44:20 +01:00
|
|
|
@rm -f $(DESTDIR)$(gblibdir)/$(COMPONENT).gambas;
|
2009-07-26 14:38:20 +02:00
|
|
|
@if test -d $(COMPONENT) && test -e $(COMPONENT)/.project ; then \
|
2008-01-23 20:56:18 +01:00
|
|
|
echo; \
|
2020-10-17 23:57:34 +02:00
|
|
|
echo "Compiling '$(COMPONENT)' component..."; \
|
2007-12-30 17:41:49 +01:00
|
|
|
( \
|
|
|
|
$(DESTDIR)$(bindir)/gbi$(GAMBAS_VERSION) -r $(DESTDIR)$(prefix) $(COMPONENT); \
|
|
|
|
cd $(COMPONENT); \
|
2021-02-01 01:17:17 +01:00
|
|
|
$(DESTDIR)$(bindir)/gbc$(GAMBAS_VERSION) -agt -r $(DESTDIR)$(prefix); \
|
2010-09-24 14:48:08 +02:00
|
|
|
if test $$? -eq 0; then \
|
|
|
|
$(DESTDIR)$(bindir)/gba$(GAMBAS_VERSION); \
|
|
|
|
rm -rf .gambas; \
|
2020-10-17 23:57:34 +02:00
|
|
|
echo "Installing '$(COMPONENT)' component..."; \
|
2010-09-24 14:48:08 +02:00
|
|
|
$(INSTALL) $(COMPONENT).gambas $(DESTDIR)$(gblibdir); \
|
|
|
|
else \
|
2020-10-17 23:57:34 +02:00
|
|
|
echo "|| Unable to compile '$(COMPONENT)'" >> ../../../warnings.log; \
|
2010-09-24 14:48:08 +02:00
|
|
|
fi \
|
2007-12-30 17:41:49 +01:00
|
|
|
) \
|
|
|
|
fi
|
2010-11-30 15:16:43 +01:00
|
|
|
@if test -d data; then \
|
2020-10-17 23:57:34 +02:00
|
|
|
echo "Installing '$(COMPONENT)' extra data files..."; \
|
2010-11-30 15:16:43 +01:00
|
|
|
$(INSTALL) -d $(DESTDIR)$(gbdatadir)/$(COMPONENT); \
|
|
|
|
$(INSTALL) data/* $(DESTDIR)$(gbdatadir)/$(COMPONENT); \
|
|
|
|
fi
|
2012-11-13 23:44:20 +01:00
|
|
|
@rm -rf $(DESTDIR)$(gbdatadir)/control/$(COMPONENT);
|
2008-01-23 20:56:18 +01:00
|
|
|
@if test -d control; then \
|
2022-10-08 10:21:21 +02:00
|
|
|
echo "Installing '$(COMPONENT)' control icons..."; \
|
2008-01-23 20:56:18 +01:00
|
|
|
$(INSTALL) -d $(DESTDIR)$(gbdatadir)/control; \
|
|
|
|
$(INSTALL) -d $(DESTDIR)$(gbdatadir)/control/$(COMPONENT); \
|
|
|
|
$(INSTALL) control/*.png $(DESTDIR)$(gbdatadir)/control/$(COMPONENT); \
|
|
|
|
fi
|
2009-07-20 17:53:19 +02:00
|
|
|
@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
|
2020-10-17 23:57:34 +02:00
|
|
|
@echo "Creating the information files for '$(COMPONENT)' component..."
|
2015-01-12 00:41:41 +01:00
|
|
|
@if test "$(EXTRACT_HELP)" = "1"; then \
|
|
|
|
$(DESTDIR)$(bindir)/gbh$(GAMBAS_VERSION) -r $(DESTDIR)$(prefix) -c $(COMPONENT); \
|
|
|
|
fi
|
2012-10-15 00:42:53 +02:00
|
|
|
@$(DESTDIR)$(bindir)/gbi$(GAMBAS_VERSION) -r $(DESTDIR)$(prefix) > /dev/null
|
2007-12-30 17:41:49 +01:00
|
|
|
@echo
|
|
|
|
|
|
|
|
uninstall-hook:
|
2020-10-17 23:57:34 +02:00
|
|
|
@echo "Uninstalling '$(COMPONENT)' component..."
|
2007-12-30 17:41:49 +01:00
|
|
|
@if test -d $(COMPONENT); then \
|
|
|
|
rm -f $(DESTDIR)$(gblibdir)/$(COMPONENT).gambas; \
|
|
|
|
fi
|
2020-10-17 23:57:34 +02:00
|
|
|
@rm -rf $(DESTDIR)$(gblibdir)/$(COMPONENT).component;
|
|
|
|
@rm -rf $(DESTDIR)$(gbdatadir)/info/$(COMPONENT).info;
|
|
|
|
@rm -rf $(DESTDIR)$(gbdatadir)/info/$(COMPONENT).list;
|
2008-01-23 20:56:18 +01:00
|
|
|
@rm -rf $(DESTDIR)$(gbdatadir)/control/$(COMPONENT);
|
2010-11-30 15:16:43 +01:00
|
|
|
@rm -rf $(DESTDIR)$(gbdatadir)/$(COMPONENT);
|
2021-05-22 16:04:41 +02:00
|
|
|
@rmdir $(DESTDIR)$(gbdatadir)/info >/dev/null 2>&1 || true;
|
|
|
|
@rmdir $(DESTDIR)$(gbdatadir)/control >/dev/null 2>&1 || true;
|
|
|
|
@rmdir $(DESTDIR)$(gbdatadir) >/dev/null 2>&1 || true;
|
|
|
|
@rmdir $(DESTDIR)$(gblibdir) >/dev/null 2>&1 || true;
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
dist-hook:
|
|
|
|
@if test -d $(COMPONENT); then \
|
|
|
|
( \
|
|
|
|
cp -pR $(COMPONENT) $(distdir)/$(COMPONENT); \
|
|
|
|
cd $(distdir)/$(COMPONENT); \
|
2012-09-23 17:01:18 +02:00
|
|
|
rm -rf .gambas .action .xvpics */.xvpics */*/.xvpics *~ */*~ */*/*~ *.out .*.out .lang/*.pot *.gambas core.* .svn */.svn */*/.svn */*/*/.svn; \
|
2007-12-30 17:41:49 +01:00
|
|
|
) \
|
|
|
|
fi
|
|
|
|
@rm -f $(distdir)/moc_*.cpp
|