blob: a830a9e0bf27531604a4590658b6c6d082954d06 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
SUBDIRS = libltdl src
EXTRA_DIST = TODO reconf app examples spec help debian README README.REDHAT README.DEBIAN
##AUTOMAKE_OPTIONS = dist-bzip2
install-exec-local:
@if test "x$(ROOT)" != "x"; then \
echo "Installing with ROOT=$(ROOT)"; \
echo; \
fi
@if test "x$(DESTDIR)" != "x"; then \
echo "Installing with DESTDIR=$(DESTDIR)"; \
echo; \
ROOT=$DESTDIR; \
fi
@echo
@echo "Creating the library info files..."
@rm -rf $(DESTDIR)$(pkgdatadir)/info
@$(INSTALL) -d $(DESTDIR)$(pkgdatadir)/info
@$(DESTDIR)$(bindir)/gbi -a -r $(prefix)
@rm -f $(DESTDIR)$(pkglibdir)/lib.gb.la
@rm -f $(DESTDIR)$(pkglibdir)/lib.gb.so*
@echo
@echo "Installing the development environment..."
@(cd $(srcdir)/app; d=`pwd`; for p in *; do echo "Compiling $$p..."; cd $$d/$$p; \
$(DESTDIR)$(bindir)/gbc -ag; $(DESTDIR)$(bindir)/gba; rm -rf .gambas; $(INSTALL) $$p $(DESTDIR)$(bindir); done)
@if test "$(bindir)" != "$(ROOT)/usr/bin" && test "$(bindir)" != "$(ROOT)/usr/bin/"; then \
rm -f $(ROOT)/usr/bin/gambas; \
ln -s $(DESTDIR)$(bindir)/gambas $(ROOT)/usr/bin/gambas; \
fi
@echo
@echo "Installing the gambas help files..."
@$(INSTALL) -d $(DESTDIR)$(pkgdatadir)/help
@rm -rf $(DESTDIR)$(pkgdatadir)/help
@cp -R $(srcdir)/help $(DESTDIR)$(pkgdatadir)
@echo
@echo "Installing the gambas examples..."
@rm -rf $(DESTDIR)$(pkgdatadir)/examples
@$(INSTALL) -d $(DESTDIR)$(pkgdatadir)/examples
@cp -R $(srcdir)/examples $(DESTDIR)$(pkgdatadir)
@(cd $(DESTDIR)$(pkgdatadir)/examples; d=`pwd`; for p in */ */*/; do cd $$d/$$p; \
if test -e .project; then \
echo "Compiling $$p..."; cd $$d/$$p; $(DESTDIR)$(bindir)/gbc -ag; $(DESTDIR)$(bindir)/gba; \
fi \
done)
|