2007-12-30 17:41:49 +01:00
|
|
|
EXTRA_DIST = reconf examples spec
|
|
|
|
|
|
|
|
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
|
|
|
|
@echo "Installing the gambas examples..."
|
|
|
|
@rm -rf $(DESTDIR)$(gbdatadir)/examples
|
|
|
|
@$(INSTALL) -d $(DESTDIR)$(gbdatadir)/examples
|
2013-01-02 01:43:22 +01:00
|
|
|
@echo "Copying..."
|
2007-12-30 17:41:49 +01:00
|
|
|
@cp -R $(srcdir)/examples $(DESTDIR)$(gbdatadir)
|
|
|
|
@(cd $(DESTDIR)$(gbdatadir)/examples; d=`pwd`; for p in */ */*/; do cd $$d/$$p; \
|
|
|
|
if test -e .project; then \
|
2013-01-02 01:43:22 +01:00
|
|
|
## Remove the possible environment variables defined in the project property dialog
|
|
|
|
cat .project | grep -v "^Environment=" > .project.new; \
|
|
|
|
rm .project; \
|
|
|
|
mv .project.new .project; \
|
2007-12-30 17:41:49 +01:00
|
|
|
echo "Compiling $$p..."; cd $$d/$$p; $(DESTDIR)$(bindir)/gbc$(GAMBAS_VERSION) -ag -r $(DESTDIR)$(prefix); $(DESTDIR)$(bindir)/gba$(GAMBAS_VERSION); \
|
|
|
|
fi \
|
|
|
|
done)
|
|
|
|
|
|
|
|
uninstall-local:
|
|
|
|
@rm -rf $(DESTDIR)$(gbdatadir)/examples
|
|
|
|
|
|
|
|
dist-hook:
|
|
|
|
@(cd $(distdir)/examples; \
|
2011-03-21 13:46:52 +01:00
|
|
|
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"`;)
|
2007-12-30 17:41:49 +01:00
|
|
|
|