From 5ceb80571111b6bdf0c1b452c411ae7c5ad76412 Mon Sep 17 00:00:00 2001 From: Laurent Carlier Date: Wed, 4 Apr 2012 13:52:16 +0000 Subject: [PATCH] [DEVELOPMENT ENVIRONMENT] * BUG: Remove PREFIX support in autotools package generation. Currently it's buggy AND useless. This should fix issues #229 and #143 git-svn-id: svn://localhost/gambas/trunk@4594 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- app/src/gambas3/install/Makefile.am | 36 ++++++++++++++--------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/app/src/gambas3/install/Makefile.am b/app/src/gambas3/install/Makefile.am index 5238446ce..194592f47 100644 --- a/app/src/gambas3/install/Makefile.am +++ b/app/src/gambas3/install/Makefile.am @@ -14,24 +14,24 @@ install-exec-local: @(cd $(srcdir)/$(PACKAGE); \ if test "$(COMPONENT_build)" = "1"; then \ echo "Installing $(PACKAGE).gambas in $(GBLIBRARY_path)"; \ - $(INSTALL) -d $(DESTDIR)$(prefix)/$(GBLIBRARY_path); \ - $(INSTALL) $(PACKAGE).gambas $(DESTDIR)$(prefix)/$(GBLIBRARY_path); \ + $(INSTALL) -d $(DESTDIR)/$(GBLIBRARY_path); \ + $(INSTALL) $(PACKAGE).gambas $(DESTDIR)/$(GBLIBRARY_path); \ echo "Installing $(PACKAGE).component in $(GBLIBRARY_path)"; \ - $(INSTALL) -d $(DESTDIR)$(prefix)/$(GBLIBRARY_path); \ - $(INSTALL) .component $(DESTDIR)$(prefix)/$(GBLIBRARY_path)/$(PACKAGE).component; \ - chmod a-x $(DESTDIR)$(prefix)/$(GBLIBRARY_path)/$(PACKAGE).component; \ + $(INSTALL) -d $(DESTDIR)/$(GBLIBRARY_path); \ + $(INSTALL) .component $(DESTDIR)/$(GBLIBRARY_path)/$(PACKAGE).component; \ + chmod a-x $(DESTDIR)/$(GBLIBRARY_path)/$(PACKAGE).component; \ echo "Installing $(PACKAGE).info in $(GBINFO_path)"; \ - $(INSTALL) -d .info $(DESTDIR)$(prefix)/$(GBINFO_path); \ - $(INSTALL) .info $(DESTDIR)$(prefix)/$(GBINFO_path)/$(PACKAGE).info; \ - chmod a-x $(DESTDIR)$(prefix)/$(GBINFO_path)/$(PACKAGE).info; \ + $(INSTALL) -d .info $(DESTDIR)/$(GBINFO_path); \ + $(INSTALL) .info $(DESTDIR)/$(GBINFO_path)/$(PACKAGE).info; \ + chmod a-x $(DESTDIR)/$(GBINFO_path)/$(PACKAGE).info; \ echo "Installing $(PACKAGE).list in $(GBINFO_path)"; \ - $(INSTALL) .list $(DESTDIR)$(prefix)/$(GBINFO_path)/$(PACKAGE).list; \ - chmod a-x $(DESTDIR)$(prefix)/$(GBINFO_path)/$(PACKAGE).list; \ + $(INSTALL) .list $(DESTDIR)/$(GBINFO_path)/$(PACKAGE).list; \ + chmod a-x $(DESTDIR)/$(GBINFO_path)/$(PACKAGE).list; \ if test -d .hidden/control; then \ echo "Installing controls in $(GBCONTROL_path)"; \ - $(INSTALL) -d $(DESTDIR)$(prefix)/$(GBCONTROL_path)/$(PACKAGE); \ - $(INSTALL) .hidden/control/*.png $(DESTDIR)$(prefix)/$(GBCONTROL_path)/$(PACKAGE); \ - chmod a-x $(DESTDIR)$(prefix)/$(GBCONTROL_path)/$(PACKAGE)/*.png; \ + $(INSTALL) -d $(DESTDIR)/$(GBCONTROL_path)/$(PACKAGE); \ + $(INSTALL) .hidden/control/*.png $(DESTDIR)/$(GBCONTROL_path)/$(PACKAGE); \ + chmod a-x $(DESTDIR)/$(GBCONTROL_path)/$(PACKAGE)/*.png; \ fi \ else \ echo "Installing $(PACKAGE).gambas file in $(bindir)..."; \ @@ -42,11 +42,11 @@ install-exec-local: uninstall-local: @(if test "$(COMPONENT_build)" = "1"; then \ echo "Removing $(PACKAGE) component..."; \ - rm -f $(DESTDIR)$(prefix)/$(GBLIBRARY_path)/$(PACKAGE).gambas; \ - rm -f $(DESTDIR)$(prefix)/$(GBLIBRARY_path)/$(PACKAGE).component; \ - rm -f $(DESTDIR)$(prefix)/$(GBINFO_path)/$(PACKAGE).info; \ - rm -f $(DESTDIR)$(prefix)/$(GBINFO_path)/$(PACKAGE).list; \ - rm -rf $(DESTDIR)$(prefix)/$(GBCONTROL_path)/$(PACKAGE); \ + rm -f $(DESTDIR)/$(GBLIBRARY_path)/$(PACKAGE).gambas; \ + rm -f $(DESTDIR)/$(GBLIBRARY_path)/$(PACKAGE).component; \ + rm -f $(DESTDIR)/$(GBINFO_path)/$(PACKAGE).info; \ + rm -f $(DESTDIR)/$(GBINFO_path)/$(PACKAGE).list; \ + rm -rf $(DESTDIR)/$(GBCONTROL_path)/$(PACKAGE); \ else \ echo "Removing $(PACKAGE).gambas file..." \ rm $(DESTDIR)$(bindir)/$(PACKAGE).gambas; \