~gusions/ubucompilator/trunk-1

« back to all changes in this revision

Viewing changes to Makefile.am

  • Committer: gusions.docky at gmail
  • Date: 2011-08-15 12:34:28 UTC
  • Revision ID: gusions.docky@gmail.com-20110815123428-j20t7xdib16mo80k
StableĀ versionĀ 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
EXTRA_DIST = $(PACKAGE)
 
2
 
 
3
all:
 
4
        @(if test "$(COMPONENT_build)" = "1"; then \
 
5
         echo "Building $(PACKAGE) component..."; \
 
6
        else \
 
7
         echo "Compiling $(PACKAGE) project..."; \
 
8
        fi)
 
9
        @(cd $(srcdir)/$(PACKAGE); \
 
10
        $(GAMBAS_path)/gbc2 -a -t ; \
 
11
        $(GAMBAS_path)/gba2)
 
12
 
 
13
install-exec-local:
 
14
        @(cd $(srcdir)/$(PACKAGE); \
 
15
        if test "$(COMPONENT_build)" = "1"; then \
 
16
         echo "Installing $(PACKAGE).gambas in $(GBLIBRARY_path)"; \
 
17
         $(INSTALL) -d $(DESTDIR)$(prefix)/$(GBLIBRARY_path); \
 
18
         $(INSTALL) $(PACKAGE).gambas $(DESTDIR)$(prefix)/$(GBLIBRARY_path); \
 
19
         echo "Installing $(PACKAGE).component in $(GBLIBRARY_path)"; \
 
20
         $(INSTALL) -d $(DESTDIR)$(prefix)/$(GBLIBRARY_path); \
 
21
         $(INSTALL) .component $(DESTDIR)$(prefix)/$(GBLIBRARY_path)/$(PACKAGE).component; \
 
22
         chmod a-x $(DESTDIR)$(prefix)/$(GBLIBRARY_path)/$(PACKAGE).component; \
 
23
         echo "Installing $(PACKAGE).info in $(GBINFO_path)"; \
 
24
         $(INSTALL) -d .info $(DESTDIR)$(prefix)/$(GBINFO_path); \
 
25
         $(INSTALL) .info $(DESTDIR)$(prefix)/$(GBINFO_path)/$(PACKAGE).info; \
 
26
         chmod a-x $(DESTDIR)$(prefix)/$(GBINFO_path)/$(PACKAGE).info; \
 
27
         echo "Installing $(PACKAGE).list in $(GBINFO_path)"; \
 
28
         $(INSTALL) .list $(DESTDIR)$(prefix)/$(GBINFO_path)/$(PACKAGE).list; \
 
29
         chmod a-x $(DESTDIR)$(prefix)/$(GBINFO_path)/$(PACKAGE).list; \
 
30
         if test -d control; then \
 
31
          echo "Installing controls in $(GBCONTROL_path)"; \
 
32
          $(INSTALL) -d $(DESTDIR)$(prefix)/$(GBCONTROL_path)/$(PACKAGE); \
 
33
          $(INSTALL) control/*.png $(DESTDIR)$(prefix)/$(GBCONTROL_path)/$(PACKAGE); \
 
34
          chmod a-x $(DESTDIR)$(prefix)/$(GBCONTROL_path)/$(PACKAGE)/*.png; \
 
35
         fi \
 
36
        else \
 
37
         echo "Installing $(PACKAGE).gambas file in $(bindir)..."; \
 
38
         $(INSTALL) -d $(DESTDIR)$(bindir); \
 
39
         $(INSTALL) $(PACKAGE).gambas $(DESTDIR)$(bindir); \
 
40
        fi)
 
41
 
 
42
uninstall-local:
 
43
        @(if test "$(COMPONENT_build)" = "1"; then \
 
44
         echo "Removing $(PACKAGE) component..."; \
 
45
         rm -f $(DESTDIR)$(prefix)/$(GBLIBRARY_path)/$(PACKAGE).gambas; \
 
46
         rm -f $(DESTDIR)$(prefix)/$(GBLIBRARY_path)/$(PACKAGE).component; \
 
47
         rm -f $(DESTDIR)$(prefix)/$(GBINFO_path)/$(PACKAGE).info; \
 
48
         rm -f $(DESTDIR)$(prefix)/$(GBINFO_path)/$(PACKAGE).list; \
 
49
         rm -rf $(DESTDIR)$(prefix)/$(GBCONTROL_path)/$(PACKAGE); \
 
50
        else \
 
51
         echo "Removing $(PACKAGE).gambas file..." \
 
52
         rm $(DESTDIR)$(bindir)/$(PACKAGE).gambas; \
 
53
        fi)
 
54
 
 
55
dist-hook:
 
56
        @(cd $(distdir)/$(PACKAGES); \
 
57
        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"`;)