2007-12-30 17:41:49 +01:00
|
|
|
EXTRA_DIST = reconf src spec
|
|
|
|
##AUTOMAKE_OPTIONS = dist-bzip2
|
|
|
|
|
|
|
|
install-exec-local:
|
|
|
|
@if test "x$(ROOT)" != "x"; then \
|
2011-03-21 13:46:52 +01:00
|
|
|
echo "[Installing with ROOT=$(ROOT)]"; \
|
|
|
|
fi
|
2007-12-30 17:41:49 +01:00
|
|
|
@if test "x$(DESTDIR)" != "x"; then \
|
2011-03-21 13:46:52 +01:00
|
|
|
echo "[Installing with DESTDIR=$(DESTDIR)]"; \
|
2007-12-30 17:41:49 +01:00
|
|
|
ROOT=$DESTDIR; \
|
2011-03-21 13:46:52 +01:00
|
|
|
fi
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
@echo "Installing the components..."
|
|
|
|
@(cd $(srcdir)/src; d=`pwd`; for p in `cat order`; do \
|
|
|
|
echo "Compiling $$p..."; \
|
|
|
|
cd $$d/$$p; \
|
2016-09-04 01:42:20 +02: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..."; \
|
2015-01-02 14:53:47 +01:00
|
|
|
rm -f $(DESTDIR)$(gblibdir)/$$p.so $(DESTDIR)$(gblibdir)/$$p.so.* $(DESTDIR)$(gblibdir)/$$p.la; \
|
2010-09-24 14:48:08 +02:00
|
|
|
$(INSTALL) $$p.gambas $(DESTDIR)$(gblibdir); \
|
|
|
|
$(INSTALL) .component $(DESTDIR)$(gblibdir)/$$p.component; \
|
|
|
|
chmod a-x $(DESTDIR)$(gblibdir)/$$p.component; \
|
|
|
|
$(INSTALL) .info $(DESTDIR)$(gbdatadir)/info/$$p.info; \
|
|
|
|
chmod a-x $(DESTDIR)$(gbdatadir)/info/$$p.info; \
|
|
|
|
$(INSTALL) .list $(DESTDIR)$(gbdatadir)/info/$$p.list; \
|
|
|
|
chmod a-x $(DESTDIR)$(gbdatadir)/info/$$p.list; \
|
|
|
|
if test -d .hidden/control; then \
|
|
|
|
$(INSTALL) -d $(DESTDIR)$(gbdatadir)/control; \
|
|
|
|
$(INSTALL) -d $(DESTDIR)$(gbdatadir)/control/$$p; \
|
|
|
|
$(INSTALL) .hidden/control/*.png $(DESTDIR)$(gbdatadir)/control/$$p; \
|
2012-10-28 15:35:31 +01:00
|
|
|
fi; \
|
|
|
|
$(DESTDIR)$(bindir)/gbi$(GAMBAS_VERSION) -r $(DESTDIR)$(prefix) $$p > /dev/null; \
|
|
|
|
$(DESTDIR)$(bindir)/gbi$(GAMBAS_VERSION) -r $(DESTDIR)$(prefix) > /dev/null; \
|
2010-09-24 14:48:08 +02:00
|
|
|
else \
|
|
|
|
echo "|| Unable to compile $$p" >> ../../../warnings.log; \
|
2009-07-20 17:53:19 +02:00
|
|
|
fi \
|
2008-10-21 11:28:34 +02:00
|
|
|
done; true)
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
uninstall-local:
|
|
|
|
@(cd $(srcdir)/src; for p in *; do \
|
|
|
|
rm -f $(DESTDIR)$(gblibdir)/$$p.gambas; \
|
|
|
|
rm -f $(DESTDIR)$(gblibdir)/$$p.component; \
|
|
|
|
rm -f $(DESTDIR)$(gbdatadir)/info/$$p.info; \
|
|
|
|
rm -f $(DESTDIR)$(gbdatadir)/info/$$p.list; \
|
|
|
|
done)
|
|
|
|
|
|
|
|
dist-hook:
|
2012-09-23 17:03:53 +02:00
|
|
|
@(cd $(distdir)/src; 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
|
|
|
|