2007-12-30 17:41:49 +01:00
|
|
|
dist_gblib_DATA = $(COMPONENT).component
|
|
|
|
gblib_DATA = $(COMPONENT).component
|
|
|
|
|
|
|
|
install-data-hook:
|
|
|
|
@$(INSTALL) -d $(DESTDIR)$(gbdatadir)/info
|
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; \
|
2007-12-30 17:41:49 +01:00
|
|
|
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); \
|
|
|
|
$(DESTDIR)$(bindir)/gba$(GAMBAS_VERSION); \
|
|
|
|
rm -rf .gambas; \
|
|
|
|
$(INSTALL) $(COMPONENT).gambas $(DESTDIR)$(gblibdir); \
|
|
|
|
) \
|
|
|
|
fi
|
2009-07-20 17:53:19 +02:00
|
|
|
@echo "Installing the $(COMPONENT) control icons if needed...";
|
2008-01-23 20:56:18 +01:00
|
|
|
@if test -d control; then \
|
|
|
|
$(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
|
2007-12-30 17:41:49 +01:00
|
|
|
@echo "Creating the information files for $(COMPONENT) component..."
|
|
|
|
@$(DESTDIR)$(bindir)/gbi$(GAMBAS_VERSION) -r $(DESTDIR)$(prefix) $(COMPONENT)
|
|
|
|
@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
|
2008-01-23 20:56:18 +01:00
|
|
|
@rm -rf $(DESTDIR)$(gbdatadir)/control/$(COMPONENT);
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
dist-hook:
|
|
|
|
@if test -d $(COMPONENT); then \
|
|
|
|
( \
|
|
|
|
cp -pR $(COMPONENT) $(distdir)/$(COMPONENT); \
|
|
|
|
cd $(distdir)/$(COMPONENT); \
|
|
|
|
rm -rf .gambas .xvpics */.xvpics */*/.xvpics *~ */*~ */*/*~ *.out .*.out .lang/*.pot *.gambas core.* .svn */.svn */*/.svn */*/*/.svn; \
|
|
|
|
) \
|
|
|
|
fi
|
|
|
|
@rm -f $(distdir)/moc_*.cpp
|