2009-08-17 00:07:48 +02:00
|
|
|
ACLOCAL_AMFLAGS = -I m4 --install
|
|
|
|
SUBDIRS = gbc gbx lib share
|
2007-12-30 17:41:49 +01:00
|
|
|
EXTRA_DIST = TODO reconf spec README mime
|
|
|
|
|
|
|
|
install-exec-local:
|
2010-09-24 14:48:08 +02:00
|
|
|
@rm -f $(srcdir)/../warnings.log
|
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; \
|
2007-12-30 17:41:49 +01:00
|
|
|
fi
|
2011-03-21 13:46:52 +01:00
|
|
|
|
2007-12-30 17:41:49 +01:00
|
|
|
@echo "Making runtime symbolic link"
|
|
|
|
@$(LN_S) -f gbx$(GAMBAS_VERSION) $(DESTDIR)$(bindir)/gbr$(GAMBAS_VERSION) || true
|
|
|
|
|
|
|
|
@if test x"$(XDG_UTILS)" != x; then \
|
|
|
|
echo "Registering Gambas executable mimetype"; \
|
|
|
|
$(INSTALL) -d $(DESTDIR)$(gbdatadir)/icons; \
|
2011-08-20 02:33:36 +02:00
|
|
|
cp -f $(srcdir)/mime/application-x-gambas3.png $(DESTDIR)$(gbdatadir)/icons; \
|
|
|
|
xdg-icon-resource install --context mimetypes --size 64 $(DESTDIR)$(gbdatadir)/icons/application-x-gambas3.png application-x-gambas3; \
|
|
|
|
xdg-mime install $(srcdir)/mime/application-x-gambas3.xml; \
|
2007-12-30 17:41:49 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
uninstall-local:
|
|
|
|
@rm -f $(DESTDIR)$(bindir)/gbr$(GAMBAS_VERSION)
|
|
|
|
@rm -rf $(DESTDIR)$(gblibdir)/info
|
2013-02-21 16:37:19 +01:00
|
|
|
@if test x"$(XDG_UTILS)" != x; then \
|
2013-02-21 16:53:06 +01:00
|
|
|
xdg-mime uninstall $(srcdir)/mime/application-x-gambas3.xml; \
|
|
|
|
xdg-icon-resource uninstall --context mimetypes --size 64 application-x-gambas3; \
|
2013-02-21 16:37:19 +01:00
|
|
|
fi
|
|
|
|
|