diff -ruN clustalw1.83-orig/clustalw.c clustalw1.83/clustalw.c --- clustalw1.83-orig/clustalw.c Wed Jan 29 00:53:45 2003 +++ clustalw1.83/clustalw.c Mon Feb 16 15:51:14 2004 @@ -34,7 +34,7 @@ #ifdef MSDOS char *help_file_name = "clustalw.hlp"; #else - char *help_file_name = "clustalw_help"; + char *help_file_name = LIBDIR "/clustalw_help"; #endif sint max_names; /* maximum length of names in current alignment file */ diff -ruN clustalw1.83-orig/makefile clustalw1.83/makefile --- clustalw1.83-orig/makefile Wed Jan 29 00:53:45 2003 +++ clustalw1.83/makefile Mon Feb 16 15:53:48 2004 @@ -1,17 +1,21 @@ -install: clustalw - -clean: - rm *.o +# +# Where to put things +# +prefix = @PREFIX@ +bindir = $(prefix)/bin +libdir = $(prefix)/lib/clustalw +# OBJECTS = interface.o sequence.o showpair.o malign.o \ - util.o trees.o gcgcheck.o prfalign.o pairalign.o \ - calcgapcoeff.o calcprf1.o calcprf2.o calctree.o \ - readmat.o alnscore.o random.o + util.o trees.o gcgcheck.o prfalign.o pairalign.o \ + calcgapcoeff.o calcprf1.o calcprf2.o calctree.o \ + readmat.o alnscore.o random.o HEADERS = general.h clustalw.h +INSTALL = /usr/bin/install CC = cc -CFLAGS = -c -O +CFLAGS = -c -O -DLIBDIR=\"${libdir}\" LFLAGS = -O -lm clustalw : $(OBJECTS) amenu.o clustalw.o @@ -31,4 +35,15 @@ .c.o : $(CC) $(CFLAGS) $? + +install: clustalw + $(INSTALL) -d -m 755 $(bindir) + $(INSTALL) -d -m 755 $(libdir) + $(INSTALL) -c -m 755 clustalw $(bindir) + $(INSTALL) -c -m 644 clustalw_help $(libdir) + +clean: + rm *.o clustalw + +