2007-12-30 17:41:49 +01:00
|
|
|
EXTRA_DIST = reconf src spec mime
|
|
|
|
|
|
|
|
install-exec-local:
|
|
|
|
@echo "Installing the development environment..."
|
|
|
|
@(cd $(srcdir)/src; d=`pwd`; \
|
|
|
|
for p in `cat INSTALL`; do \
|
|
|
|
echo "Compiling $$p..."; cd $$d/$$p; \
|
|
|
|
$(DESTDIR)$(bindir)/gbc$(GAMBAS_VERSION) -ag -r $(DESTDIR)$(prefix); \
|
|
|
|
$(DESTDIR)$(bindir)/gba$(GAMBAS_VERSION); \
|
|
|
|
rm -rf .gambas; \
|
|
|
|
$(INSTALL) $$p.gambas $(DESTDIR)$(bindir); \
|
|
|
|
done)
|
|
|
|
##@if test "$(bindir)" != "$(ROOT)/usr/bin" && test "$(bindir)" != "$(ROOT)/usr/bin/"; then
|
|
|
|
@ln -s gambas$(GAMBAS_VERSION).gambas $(DESTDIR)$(bindir)/gambas$(GAMBAS_VERSION) || true
|
|
|
|
|
|
|
|
@echo "Installing the scripter..."
|
|
|
|
@ln -s gbs$(GAMBAS_VERSION).gambas $(DESTDIR)$(bindir)/gbs$(GAMBAS_VERSION) || true
|
2010-05-03 13:46:02 +02:00
|
|
|
@ln -s 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 \
|
|
|
|
$(INSTALL) -d $(DESTDIR)$(gbdatadir)/icons; \
|
2008-09-26 04:25:29 +02:00
|
|
|
cp -f $(srcdir)/mime/application-x-gambas*.png $(DESTDIR)$(gbdatadir)/icons; \
|
|
|
|
echo "Registering Gambas script mimetype"; \
|
2007-12-30 17:41:49 +01:00
|
|
|
xdg-icon-resource install --context mimetypes --size 64 $(DESTDIR)$(gbdatadir)/icons/application-x-gambasscript.png application-x-gambasscript; \
|
|
|
|
xdg-mime install $(srcdir)/mime/application-x-gambasscript.xml; \
|
2008-09-26 04:25:29 +02:00
|
|
|
echo "Registering Gambas server page mimetype"; \
|
|
|
|
xdg-icon-resource install --context mimetypes --size 64 $(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
|
|
|
|
|
|
|
|
uninstall-local:
|
|
|
|
@rm -f $(DESTDIR)$(bindir)/gambas$(GAMBAS_VERSION)
|
|
|
|
@rm -f $(DESTDIR)$(bindir)/gbs$(GAMBAS_VERSION)
|
|
|
|
@(cd $(srcdir)/src; for p in `cat INSTALL`; do rm -f $(DESTDIR)$(bindir)/$$p.gambas; done)
|
|
|
|
|
|
|
|
dist-hook:
|
|
|
|
@(cd $(distdir)/src; \
|
|
|
|
rm -rf `find . -name ".gambas" -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"`;)
|
|
|
|
|