1 | --- Makefile.orig 2011-04-16 22:35:38.000000000 +0200 |
---|
2 | +++ Makefile 2011-04-26 17:53:52.000000000 +0200 |
---|
3 | @@ -80,7 +80,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 | @@ -92,9 +92,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 | ###################################################################### |
---|