File: Makefile.am

package info (click to toggle)
gambas3 3.20.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 76,984 kB
  • sloc: ansic: 197,178; cpp: 124,076; sh: 18,999; javascript: 7,761; sql: 5,399; makefile: 2,354; perl: 1,397; xml: 490; python: 335
file content (53 lines) | stat: -rw-r--r-- 2,336 bytes parent folder | download | duplicates (2)
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
50
51
52
53
EXTRA_DIST = order gb.*

install-exec-local:
	@if test "x$(ROOT)" != "x"; then \
	 echo "[Installing with ROOT=$(ROOT)]"; \
	fi
	@if test "x$(DESTDIR)" != "x"; then \
	 echo "[Installing with DESTDIR=$(DESTDIR)]"; \
	 ROOT=$DESTDIR; \
	fi
	
	@(cd $(srcdir); d=`pwd`; for p in `cat order`; do \
	  echo "Compiling '$$p' component..."; \
	  cd $$d/$$p; \
	  $(DESTDIR)$(bindir)/gbc$(GAMBAS_VERSION) -agtq -r $(DESTDIR)$(prefix); \
	  if test $$? -eq 0; then \
	    $(DESTDIR)$(bindir)/gba$(GAMBAS_VERSION); \
	    rm -rf .gambas; \
	    echo "Installing '$$p' component..."; \
	    rm -f $(DESTDIR)$(gblibdir)/$$p.so $(DESTDIR)$(gblibdir)/$$p.so.* $(DESTDIR)$(gblibdir)/$$p.la; \
	    $(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; \
	    fi; \
	    $(DESTDIR)$(bindir)/gbi$(GAMBAS_VERSION) -r $(DESTDIR)$(prefix) $$p > /dev/null; \
	    $(DESTDIR)$(bindir)/gbi$(GAMBAS_VERSION) -r $(DESTDIR)$(prefix) > /dev/null; \
	  else \
	    echo "|| Unable to compile '$$p' component" >> ../../../warnings.log; \
	  fi \
	  done; true)

uninstall-local:
	@(cd $(srcdir); for p in gb.*; do \
	  echo "Uninstalling '$$p' component..."; \
	  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; \
	  rm -rf $(DESTDIR)$(gbdatadir)/control/$$p; \
	  done)
	@rmdir --ignore-fail-on-non-empty $(DESTDIR)$(gbdatadir)/info $(DESTDIR)$(gbdatadir)/control $(DESTDIR)$(gbdatadir) $(DESTDIR)$(gblibdir)

dist-hook:
	@(cd $(distdir); 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"`;)