15
15
if test "$(COMPONENT_build)" = "1"; then \
16
16
echo "Installing $(PACKAGE).gambas in $(GBLIBRARY_path)"; \
17
17
$(INSTALL) -d $(DESTDIR)/$(GBLIBRARY_path); \
18
$(INSTALL) $(PACKAGE).gambas $(DESTDIR)/$(GBLIBRARY_path); \
18
$(INSTALL) $(PACKAGE).gambas $(DESTDIR)/$(GBLIBRARY_path)/$(COMPONENT_name).gambas; \
19
19
echo "Installing $(PACKAGE).component in $(GBLIBRARY_path)"; \
20
20
$(INSTALL) -d $(DESTDIR)/$(GBLIBRARY_path); \
21
$(INSTALL) .component $(DESTDIR)/$(GBLIBRARY_path)/$(PACKAGE).component; \
22
chmod a-x $(DESTDIR)/$(GBLIBRARY_path)/$(PACKAGE).component; \
21
$(INSTALL) .component $(DESTDIR)/$(GBLIBRARY_path)/$(COMPONENT_name).component; \
22
chmod a-x $(DESTDIR)/$(GBLIBRARY_path)/$(COMPONENT_name).component; \
23
23
echo "Installing $(PACKAGE).info in $(GBINFO_path)"; \
24
$(INSTALL) -d .info $(DESTDIR)/$(GBINFO_path); \
25
$(INSTALL) .info $(DESTDIR)/$(GBINFO_path)/$(PACKAGE).info; \
26
chmod a-x $(DESTDIR)/$(GBINFO_path)/$(PACKAGE).info; \
24
$(INSTALL) -d $(DESTDIR)/$(GBINFO_path); \
25
$(INSTALL) .info $(DESTDIR)/$(GBINFO_path)/$(COMPONENT_name).info; \
26
chmod a-x $(DESTDIR)/$(GBINFO_path)/$(COMPONENT_name).info; \
27
27
echo "Installing $(PACKAGE).list in $(GBINFO_path)"; \
28
$(INSTALL) .list $(DESTDIR)/$(GBINFO_path)/$(PACKAGE).list; \
29
chmod a-x $(DESTDIR)/$(GBINFO_path)/$(PACKAGE).list; \
28
$(INSTALL) .list $(DESTDIR)/$(GBINFO_path)/$(COMPONENT_name).list; \
29
chmod a-x $(DESTDIR)/$(GBINFO_path)/$(COMPONENT_name).list; \
30
30
if test -d .hidden/control; then \
31
31
echo "Installing controls in $(GBCONTROL_path)"; \
32
$(INSTALL) -d $(DESTDIR)/$(GBCONTROL_path)/$(PACKAGE); \
33
$(INSTALL) .hidden/control/*.png $(DESTDIR)/$(GBCONTROL_path)/$(PACKAGE); \
34
chmod a-x $(DESTDIR)/$(GBCONTROL_path)/$(PACKAGE)/*.png; \
32
$(INSTALL) -d $(DESTDIR)/$(GBCONTROL_path)/$(COMPONENT_name); \
33
$(INSTALL) .hidden/control/*.png $(DESTDIR)/$(GBCONTROL_path)/$(COMPONENT_name); \
34
chmod a-x $(DESTDIR)/$(GBCONTROL_path)/$(COMPONENT_name)/*.png; \
37
37
echo "Installing $(PACKAGE).gambas file in $(bindir)..."; \
43
43
@(if test "$(COMPONENT_build)" = "1"; then \
44
echo "Removing $(PACKAGE) component..."; \
45
rm -f $(DESTDIR)/$(GBLIBRARY_path)/$(PACKAGE).gambas; \
46
rm -f $(DESTDIR)/$(GBLIBRARY_path)/$(PACKAGE).component; \
47
rm -f $(DESTDIR)/$(GBINFO_path)/$(PACKAGE).info; \
48
rm -f $(DESTDIR)/$(GBINFO_path)/$(PACKAGE).list; \
49
rm -rf $(DESTDIR)/$(GBCONTROL_path)/$(PACKAGE); \
44
echo "Removing $(COMPONENT_name) component..."; \
45
rm -f $(DESTDIR)/$(GBLIBRARY_path)/$(COMPONENT_name).gambas; \
46
rm -f $(DESTDIR)/$(GBLIBRARY_path)/$(COMPONENT_name).component; \
47
rm -f $(DESTDIR)/$(GBINFO_path)/$(COMPONENT_name).info; \
48
rm -f $(DESTDIR)/$(GBINFO_path)/$(COMPONENT_name).list; \
49
rm -rf $(DESTDIR)/$(GBCONTROL_path)/$(COMPONENT_name); \
51
51
echo "Removing $(PACKAGE).gambas file..."; \
52
52
rm -f $(DESTDIR)$(bindir)/$(PACKAGE).gambas; \