Ticket #35639: patch-Makefile

File patch-Makefile, 779 bytes (added by rwilcox (Ryan Wilcox), 12 years ago)

patch for the files directory (patches Makefile)

Line 
1--- Makefile.old        2008-01-22 18:32:08.000000000 -0500
2+++ Makefile    2008-01-22 18:34:41.000000000 -0500
3@@ -68,7 +68,7 @@
4 ######################################################################
5 # Installation
6 
7-INSTALLDIR = $(HOME)/bin/
8+INSTALLDIR = $(DESTDIR)$(PREFIX)/bin/
9 
10 # This has two names because on OSX the file INSTALL shadows the target 'install'!
11 install: doinstall
12@@ -80,9 +80,8 @@
13        make -C .. text
14 
15 doinstall: $(NAME)$(EXEC_EXT)
16-       -mv $(INSTALLDIR)/$(NAME)$(EXEC_EXT) /tmp/$(NAME)-$(shell echo $$$$)
17-       cp $(NAME)$(EXEC_EXT) $(INSTALLDIR)
18        cp $(NAME)$(EXEC_EXT) $(INSTALLDIR)$(NAME)-$(MAJORVERSION)$(EXEC_EXT)
19+       cd $(INSTALLDIR) && ln -s $(NAME)-$(MAJORVERSION)$(EXEC_EXT) $(NAME)
20 
21 
22 ######################################################################