1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
|
dist_gblib_DATA = $(COMPONENT).component
## gblib_DATA = $(COMPONENT).component
install-data-hook:
@$(INSTALL) -d $(DESTDIR)$(gbdatadir)/info
@rm -f $(DESTDIR)$(gblibdir)/$(COMPONENT).gambas;
@if test -d $(COMPONENT) && test -e $(COMPONENT)/.project; then \
echo; \
( \
$(DESTDIR)$(bindir)/gbi$(GAMBAS_VERSION) -r $(DESTDIR)$(prefix) $(COMPONENT); \
cd $(COMPONENT); \
$(DESTDIR)$(bindir)/gbc$(GAMBAS_VERSION) -agtq -r $(DESTDIR)$(prefix); \
if test $$? -eq 0; then \
$(DESTDIR)$(bindir)/gba$(GAMBAS_VERSION); \
rm -rf .gambas; \
echo "Installing '$(COMPONENT)' component..."; \
$(INSTALL) $(COMPONENT).gambas $(DESTDIR)$(gblibdir); \
else \
echo "|| Unable to compile '$(COMPONENT)'" >> ../../../warnings.log; \
fi \
) \
fi
@if test -d data; then \
echo "Installing '$(COMPONENT)' extra data files..."; \
$(INSTALL) -d $(DESTDIR)$(gbdatadir)/$(COMPONENT); \
$(INSTALL) data/* $(DESTDIR)$(gbdatadir)/$(COMPONENT); \
fi
@rm -rf $(DESTDIR)$(gbdatadir)/control/$(COMPONENT);
@if test -d control -o -d $(COMPONENT)/.hidden/control; then \
echo "Installing '$(COMPONENT)' control icons..."; \
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 \
fi
@echo "Creating the information files for '$(COMPONENT)' component..."
@if test "$(EXTRACT_HELP)" = "1"; then \
$(DESTDIR)$(bindir)/gbh$(GAMBAS_VERSION) -r $(DESTDIR)$(prefix) -c $(COMPONENT); \
fi
@$(DESTDIR)$(bindir)/gbi$(GAMBAS_VERSION) -r $(DESTDIR)$(prefix) > /dev/null
@echo
uninstall-hook:
@echo "Uninstalling '$(COMPONENT)' component..."
@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);
@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;
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
|