2015-09-18 02:41:43 +02:00
|
|
|
EXTRA_DIST = reconf src spec mime desktop template
|
2020-06-20 04:56:22 +02:00
|
|
|
SUBDIRS = . man
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
install-exec-local:
|
2011-03-21 13:46:52 +01:00
|
|
|
@if test "x$(ROOT)" != "x"; then \
|
|
|
|
echo "[Installing with ROOT=$(ROOT)]"; \
|
|
|
|
fi
|
|
|
|
@if test "x$(DESTDIR)" != "x"; then \
|
|
|
|
echo "[Installing with DESTDIR=$(DESTDIR)]"; \
|
|
|
|
ROOT=$DESTDIR; \
|
|
|
|
fi
|
|
|
|
|
2007-12-30 17:41:49 +01:00
|
|
|
@echo "Installing the development environment..."
|
|
|
|
@(cd $(srcdir)/src; d=`pwd`; \
|
|
|
|
for p in `cat INSTALL`; do \
|
|
|
|
echo "Compiling $$p..."; cd $$d/$$p; \
|
2019-01-24 04:11:35 +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; \
|
|
|
|
echo "Installing $$p..."; \
|
|
|
|
$(INSTALL) $$p.gambas $(DESTDIR)$(bindir); \
|
|
|
|
else \
|
|
|
|
echo "|| Unable to compile $$p" >> ../../../warnings.log; \
|
|
|
|
fi \
|
2007-12-30 17:41:49 +01:00
|
|
|
done)
|
|
|
|
##@if test "$(bindir)" != "$(ROOT)/usr/bin" && test "$(bindir)" != "$(ROOT)/usr/bin/"; then
|
2016-08-18 20:56:20 +02:00
|
|
|
@$(LN_S) -f gambas$(GAMBAS_VERSION).gambas $(DESTDIR)$(bindir)/gambas$(GAMBAS_VERSION) || true
|
2020-10-16 02:36:50 +02:00
|
|
|
@if test x"$(XDG_UTILS)" != x; then \
|
2020-10-17 23:57:34 +02:00
|
|
|
echo "Installing IDE application icon..."; \
|
2020-10-17 18:08:08 +02:00
|
|
|
xdg-icon-resource install --novendor --context apps --size 256 $(srcdir)/desktop/gambas3.png gambas3; \
|
2020-10-17 23:57:34 +02:00
|
|
|
echo "Installing IDE application menu..."; \
|
2020-10-18 00:53:15 +02:00
|
|
|
$(INSTALL) -d $(DESTDIR)$(datarootdir)/desktop-directories; \
|
2020-10-17 18:08:08 +02:00
|
|
|
xdg-desktop-menu install --novendor $(srcdir)/desktop/gambas3.desktop; \
|
2020-10-18 00:53:15 +02:00
|
|
|
rmdir --ignore-fail-on-non-empty $(DESTDIR)$(datarootdir)/desktop-directories; \
|
2020-10-16 02:36:50 +02:00
|
|
|
fi
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
@echo "Installing the scripter..."
|
2016-08-18 20:56:20 +02:00
|
|
|
@$(LN_S) -f gbs$(GAMBAS_VERSION).gambas $(DESTDIR)$(bindir)/gbs$(GAMBAS_VERSION) || true
|
|
|
|
@$(LN_S) -f gbs$(GAMBAS_VERSION).gambas $(DESTDIR)$(bindir)/gbw$(GAMBAS_VERSION) || true
|
2007-12-30 17:41:49 +01:00
|
|
|
@if test x"$(XDG_UTILS)" != x; then \
|
2018-10-31 12:48:32 +01:00
|
|
|
echo "Registering Gambas script mimetype..."; \
|
2020-10-17 18:08:08 +02:00
|
|
|
xdg-icon-resource install --context mimetypes --size 256 $(srcdir)/mime/application-x-gambasscript.png application-x-gambasscript; \
|
2018-10-26 03:30:43 +02:00
|
|
|
xdg-mime install $(srcdir)/mime/application-x-gambasscript.xml; \
|
2018-10-31 12:48:32 +01:00
|
|
|
echo "Registering Gambas server page mimetype..."; \
|
2020-10-17 18:08:08 +02:00
|
|
|
xdg-icon-resource install --context mimetypes --size 256 $(srcdir)/mime/application-x-gambasserverpage.png application-x-gambasserverpage; \
|
2018-10-26 03:30:43 +02:00
|
|
|
xdg-mime install $(srcdir)/mime/application-x-gambasserverpage.xml; \
|
2007-12-30 17:41:49 +01:00
|
|
|
fi
|
2015-01-12 00:41:41 +01:00
|
|
|
|
2018-10-31 12:48:32 +01:00
|
|
|
@echo "Installing the Gambas appdata file..."
|
2018-11-03 09:59:16 +01:00
|
|
|
@$(INSTALL) -d $(DESTDIR)$(datarootdir)/appdata;
|
2018-10-31 12:48:32 +01:00
|
|
|
@$(INSTALL) $(srcdir)/desktop/gambas3.appdata.xml $(DESTDIR)$(datarootdir)/appdata;
|
2018-11-03 09:59:16 +01:00
|
|
|
@$(INSTALL) -d $(DESTDIR)$(datarootdir)/metainfo;
|
|
|
|
@$(INSTALL) $(srcdir)/desktop/gambas3.appdata.xml $(DESTDIR)$(datarootdir)/metainfo;
|
2015-09-18 02:41:43 +02:00
|
|
|
|
2018-10-31 12:48:32 +01:00
|
|
|
@echo "Installing the Gambas template projects..."
|
|
|
|
@$(INSTALL) -d $(DESTDIR)$(gbdatadir)/template;
|
|
|
|
@cp -R $(srcdir)/template/* $(DESTDIR)$(gbdatadir)/template;
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
uninstall-local:
|
2020-10-17 23:57:34 +02:00
|
|
|
@echo "Uninstalling the development environment..."
|
2007-12-30 17:41:49 +01:00
|
|
|
@rm -f $(DESTDIR)$(bindir)/gambas$(GAMBAS_VERSION)
|
|
|
|
@rm -f $(DESTDIR)$(bindir)/gbs$(GAMBAS_VERSION)
|
2014-10-25 01:20:33 +02:00
|
|
|
@rm -f $(DESTDIR)$(bindir)/gbw$(GAMBAS_VERSION)
|
2007-12-30 17:41:49 +01:00
|
|
|
@(cd $(srcdir)/src; for p in `cat INSTALL`; do rm -f $(DESTDIR)$(bindir)/$$p.gambas; done)
|
2020-10-16 02:36:50 +02:00
|
|
|
@if test x"$(XDG_UTILS)" != x; then \
|
|
|
|
xdg-mime uninstall $(srcdir)/mime/application-x-gambasscript.xml; \
|
|
|
|
xdg-mime uninstall $(srcdir)/mime/application-x-gambasserverpage.xml; \
|
|
|
|
xdg-icon-resource uninstall --context mimetypes --size 256 application-x-gambasscript; \
|
|
|
|
xdg-icon-resource uninstall --context mimetypes --size 256 application-x-gambasserverpage; \
|
2021-01-03 18:35:22 +01:00
|
|
|
xdg-icon-resource uninstall --context apps --size 256 gambas3; \
|
2020-10-16 02:36:50 +02:00
|
|
|
fi
|
2018-10-22 22:57:13 +02:00
|
|
|
@rm -rf $(DESTDIR)$(datarootdir)/metainfo/gambas3.appdata.xml
|
2018-10-26 03:30:43 +02:00
|
|
|
@rm -rf $(DESTDIR)$(datarootdir)/appdata/gambas3.appdata.xml
|
2015-09-25 01:52:22 +02:00
|
|
|
@rm -rf $(DESTDIR)$(gbdatadir)/template
|
2020-10-17 23:57:34 +02:00
|
|
|
@rmdir --ignore-fail-on-non-empty $(DESTDIR)$(datarootdir)/metainfo $(DESTDIR)$(datarootdir)/appdata $(DESTDIR)$(gbdatadir)
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
dist-hook:
|
|
|
|
@(cd $(distdir)/src; \
|
2012-09-23 17:01:18 +02:00
|
|
|
rm -rf `find . -name ".gambas" -o -name ".action" -o -name ".lock" -o -name ".xvpics" -o -name "*~" -o -name "*.out" -o -name "*.pot" -o -name "*.gambas" -o -name "core*" -o -name ".kdbg*" -o -name ".svn"`;)
|
2007-12-30 17:41:49 +01:00
|
|
|
|