summaryrefslogtreecommitdiff
blob: 40ab0777b8ba21aa98fd1541dd3c06b95238bf2d (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
--- main/Makefile.am.orig	2008-11-02
+++ main/Makefile.am	2008-11-02
@@ -4,18 +4,25 @@
 EXTRA_DIST = TODO reconf spec README mime
 
 install-exec-local:
-	@if test x"$(DESTDIR)" != x; then \
-		echo "Installing with DESTDIR='$(DESTDIR)'"; \
-	fi
-	@echo "Making runtime symbolic link"
-	@$(LN_S) -f gbx$(GAMBAS_VERSION) $(DESTDIR)$(bindir)/gbr$(GAMBAS_VERSION) || true
-	
-	@if test x"$(XDG_UTILS)" != x; then \
+	@echo "=== Installing the runtime ==="; \
+	echo
+
+	@if test -n "$(DESTDIR)"; then \
+		echo "Installing with DESTDIR=$(DESTDIR)"; \
+	fi; \
+	echo
+
+	@echo "Creating runtime symbolic link"; \
+	$(LN_S) gbx$(GAMBAS_VERSION) $(DESTDIR)$(bindir)/gbr$(GAMBAS_VERSION); \
+	echo
+
+	@if test -n "$(XDG_UTILS)"; then \
 		echo "Registering Gambas executable mimetype"; \
 		$(INSTALL) -d $(DESTDIR)$(gbdatadir)/icons; \
-		cp -f $(srcdir)/mime/application-x-gambas.png $(DESTDIR)$(gbdatadir)/icons; \
+		$(INSTALL) -c -m 644 $(srcdir)/mime/application-x-gambas.png $(DESTDIR)$(gbdatadir)/icons; \
 		xdg-icon-resource install --context mimetypes --size 64 $(DESTDIR)$(gbdatadir)/icons/application-x-gambas.png application-x-gambas; \
 		xdg-mime install $(srcdir)/mime/application-x-gambas.xml; \
+		echo; \
 	fi
 
 uninstall-local: