-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
57 lines (53 loc) · 2.47 KB
/
Makefile.am
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
54
55
56
57
EXTRA_DIST = $(PACKAGE)
all:
@(if test "$(COMPONENT_build)" = "1"; then \
echo "Building $(COMPONENT_name) component..."; \
else \
echo "Compiling $(PACKAGE) project..."; \
fi)
@(cd $(srcdir)/$(PACKAGE); \
$(GAMBAS_path)/gbc3 -e -a -g -x ; \
$(GAMBAS_path)/gba3)
install-exec-local:
@(cd $(srcdir)/$(PACKAGE); \
if test "$(COMPONENT_build)" = "1"; then \
echo "Installing $(PACKAGE).gambas in $(GBLIBRARY_path)"; \
$(INSTALL) -d $(DESTDIR)/$(GBLIBRARY_path); \
$(INSTALL) $(PACKAGE).gambas $(DESTDIR)/$(GBLIBRARY_path)/$(COMPONENT_name).gambas; \
echo "Installing $(PACKAGE).component in $(GBLIBRARY_path)"; \
$(INSTALL) -d $(DESTDIR)/$(GBLIBRARY_path); \
$(INSTALL) .component $(DESTDIR)/$(GBLIBRARY_path)/$(COMPONENT_name).component; \
chmod a-x $(DESTDIR)/$(GBLIBRARY_path)/$(COMPONENT_name).component; \
echo "Installing $(PACKAGE).info in $(GBINFO_path)"; \
$(INSTALL) -d $(DESTDIR)/$(GBINFO_path); \
$(INSTALL) .info $(DESTDIR)/$(GBINFO_path)/$(COMPONENT_name).info; \
chmod a-x $(DESTDIR)/$(GBINFO_path)/$(COMPONENT_name).info; \
echo "Installing $(PACKAGE).list in $(GBINFO_path)"; \
$(INSTALL) .list $(DESTDIR)/$(GBINFO_path)/$(COMPONENT_name).list; \
chmod a-x $(DESTDIR)/$(GBINFO_path)/$(COMPONENT_name).list; \
if test -d .hidden/control; then \
echo "Installing controls in $(GBCONTROL_path)"; \
$(INSTALL) -d $(DESTDIR)/$(GBCONTROL_path)/$(COMPONENT_name); \
$(INSTALL) .hidden/control/*.png $(DESTDIR)/$(GBCONTROL_path)/$(COMPONENT_name); \
chmod a-x $(DESTDIR)/$(GBCONTROL_path)/$(COMPONENT_name)/*.png; \
fi \
else \
echo "Installing $(PACKAGE).gambas file in $(bindir)..."; \
$(INSTALL) -d $(DESTDIR)$(bindir); \
$(INSTALL) $(PACKAGE).gambas $(DESTDIR)$(bindir); \
fi)
uninstall-local:
@(if test "$(COMPONENT_build)" = "1"; then \
echo "Removing $(COMPONENT_name) component..."; \
rm -f $(DESTDIR)/$(GBLIBRARY_path)/$(COMPONENT_name).gambas; \
rm -f $(DESTDIR)/$(GBLIBRARY_path)/$(COMPONENT_name).component; \
rm -f $(DESTDIR)/$(GBINFO_path)/$(COMPONENT_name).info; \
rm -f $(DESTDIR)/$(GBINFO_path)/$(COMPONENT_name).list; \
rm -rf $(DESTDIR)/$(GBCONTROL_path)/$(COMPONENT_name); \
else \
echo "Removing $(PACKAGE).gambas file..."; \
rm -f $(DESTDIR)$(bindir)/$(PACKAGE).gambas; \
fi)
dist-hook:
@(cd $(distdir)/$(PACKAGES); \
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"`;)