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
|
|
|
|
|
|
|
@(cd $(srcdir)/src; d=`pwd`; for p in `cat order`; do \
|
2020-10-17 23:57:34 +02:00
|
|
|
echo "Compiling '$$p' component..."; \
|
2007-12-30 17:41:49 +01:00
|
|
|
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; \
|
2020-10-17 23:57:34 +02:00
|
|
|
echo "Installing '$$p' component..."; \
|
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 \
|
2020-10-17 23:57:34 +02:00
|
|
|
echo "|| Unable to compile '$$p' component" >> ../../../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:
|
2020-10-17 23:57:34 +02:00
|
|
|
@(cd $(srcdir)/src; for p in gb.*; do \
|
|
|
|
echo "Uninstalling '$$p' component..."; \
|
2007-12-30 17:41:49 +01:00
|
|
|
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; \
|
2020-10-17 23:57:34 +02:00
|
|
|
rm -rf $(DESTDIR)$(gbdatadir)/control/$$p; \
|
2007-12-30 17:41:49 +01:00
|
|
|
done)
|
2020-10-17 23:57:34 +02:00
|
|
|
@rmdir --ignore-fail-on-non-empty $(DESTDIR)$(gbdatadir)/info $(DESTDIR)$(gbdatadir)/control $(DESTDIR)$(gbdatadir) $(DESTDIR)$(gblibdir)
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
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
|
|
|
|