diff -U 3 -dHrN -- am-orig/makefile am/makefile --- am-orig/makefile 2004-05-09 01:33:05.000000000 +0200 +++ am/makefile 2004-05-20 15:15:45.398058040 +0200 @@ -1,15 +1,9 @@ # Makefile for compiling Mathomatic for UNIX or Linux. -CFLAGS = -O -DUNIX -LDFLAGS = -s -LIBS = -lm - -CFLAGS += $(READLINE:1=-DREADLINE) -LIBS += $(READLINE:1=-lreadline -lcurses) - -PREFIX = /usr/local +CFLAGS += -DUNIX -DREADLINE +LIBS = -lreadline -lcurses -AOUT =am +AOUT =mathomatic OBJECTS =main.o am.o parse.o cmds.o simplify.o factor.o super.o \ unfactor.o diff.o complex.o list.o @@ -30,8 +24,9 @@ $(CC) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $(AOUT) install: $(AOUT) - install -m 0755 $(AOUT) $(PREFIX)/bin - install -m 0644 am.1 $(PREFIX)/man/man1 + install -D -s -m 0755 $(AOUT) $(PREFIX)/usr/bin/$(AOUT) + sed "s:am:mathomatic:g" < am.1 > mathomatic.1 + install -D -m 0644 mathomatic.1 $(MANDIR)/man1/mathomatic.1 @echo Install completed. clean: