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
|
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-26 03:30:43 +02:00
|
|
|
$(INSTALL) -d $(DESTDIR)$(gbdatadir)/icons; \
|
|
|
|
cp -f $(srcdir)/mime/application-x-gambas*.png $(DESTDIR)$(gbdatadir)/icons; \
|
2018-10-31 12:48:32 +01:00
|
|
|
echo "Registering Gambas script mimetype..."; \
|
2018-10-26 03:30:43 +02:00
|
|
|
xdg-icon-resource install --context mimetypes --size 256 $(DESTDIR)$(gbdatadir)/icons/application-x-gambasscript.png application-x-gambasscript; \
|
|
|
|
xdg-mime install $(srcdir)/mime/application-x-gambasscript.xml; \
|
2018-10-31 12:48:32 +01:00
|
|
|
echo "Registering Gambas server page mimetype..."; \
|
2018-10-26 03:30:43 +02:00
|
|
|
xdg-icon-resource install --context mimetypes --size 256 $(DESTDIR)$(gbdatadir)/icons/application-x-gambasserverpage.png application-x-gambasserverpage; \
|
|
|
|
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:
|
|
|
|
@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)
|
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
|
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
|
|
|
|