2009-08-16 22:07:48 +00:00
|
|
|
ACLOCAL_AMFLAGS = -I m4 --install
|
|
|
|
SUBDIRS = gbc gbx lib share
|
2013-07-12 23:57:53 +00:00
|
|
|
EXTRA_DIST = TODO reconf spec README mime gb.*.h
|
2013-05-25 13:23:39 +00:00
|
|
|
BUILT_SOURCES = trunk_version.h
|
|
|
|
CLEANFILES = trunk_version.h
|
|
|
|
|
2013-05-25 13:30:06 +00:00
|
|
|
.PHONY: trunk_version.h
|
2013-05-25 13:23:39 +00:00
|
|
|
trunk_version.h:
|
|
|
|
@if test -d ../.svn ; then \
|
|
|
|
if test ../.svn -nt trunk_version.h ; then \
|
|
|
|
echo '#define TRUNK_VERSION "'`LC_ALL=C svn info 2>/dev/null | grep Revision | egrep -wo [0-9]+`'"' > trunk_version.h; \
|
|
|
|
fi \
|
|
|
|
else \
|
|
|
|
touch trunk_version.h; \
|
|
|
|
fi
|
2007-12-30 16:41:49 +00:00
|
|
|
|
|
|
|
install-exec-local:
|
2010-09-24 12:48:08 +00:00
|
|
|
@rm -f $(srcdir)/../warnings.log
|
2011-03-21 12:46:52 +00: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 16:41:49 +00:00
|
|
|
fi
|
2011-03-21 12:46:52 +00:00
|
|
|
|
2007-12-30 16:41:49 +00: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 00:33:36 +00: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 16:41:49 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
uninstall-local:
|
|
|
|
@rm -f $(DESTDIR)$(bindir)/gbr$(GAMBAS_VERSION)
|
|
|
|
@rm -rf $(DESTDIR)$(gblibdir)/info
|
2013-02-21 15:37:19 +00:00
|
|
|
@if test x"$(XDG_UTILS)" != x; then \
|
2013-02-21 15:53:06 +00:00
|
|
|
xdg-mime uninstall $(srcdir)/mime/application-x-gambas3.xml; \
|
|
|
|
xdg-icon-resource uninstall --context mimetypes --size 64 application-x-gambas3; \
|
2013-02-21 15:37:19 +00:00
|
|
|
fi
|
|
|
|
|
2013-05-25 13:23:39 +00:00
|
|
|
dist-hook:
|
|
|
|
@rm -f $(distdir)/trunk_version.h
|