diff -Naur ming-0.3.0beta2/Makefile-real ming-0.3.0beta2.oden/Makefile-real --- ming-0.3.0beta2/Makefile-real 2006-01-25 11:06:53.000000000 +0100 +++ ming-0.3.0beta2.oden/Makefile-real 2006-02-07 04:00:55.000000000 +0100 @@ -1,17 +1,18 @@ include Makefile.config DIRS = src util py_ext +DESTDIR = all: dynamic utils static install: install-common install-dynamic install-utils install-static install-man install-common: - install -d $(libdir) - install -d $(includedir) - install -c -m 0644 src/ming.h $(includedir) - install -c -m 0644 src/ming_config.h $(includedir) - install -c -m 0644 mingpp.h $(includedir) + install -d $(DESTDIR)$(libdir) + install -d $(DESTDIR)$(includedir) + install -c -m 0644 src/ming.h $(DESTDIR)$(includedir) + install -c -m 0644 src/ming_config.h $(DESTDIR)$(includedir) + install -c -m 0644 mingpp.h $(DESTDIR)$(includedir) install-utils: (cd util && make install) @@ -20,11 +21,11 @@ (cd man && make install) install-dynamic: dynamic - install -c -m 0644 $(SHAREDLIB) $(libdir)/$(SHAREDLIB) - (cd $(libdir) && ln -fs $(SHAREDLIB) libming$(SHORT_SHLIBEXT) && ln -fs libming$(SHORT_SHLIBEXT) libming$(NOVAR_SHLIBEXT)) + install -c -m 0644 $(SHAREDLIB) $(DESTDIR)$(libdir)/$(SHAREDLIB) + (cd $(DESTDIR)$(libdir) && ln -fs $(SHAREDLIB) libming$(SHORT_SHLIBEXT) && ln -fs libming$(SHORT_SHLIBEXT) libming$(NOVAR_SHLIBEXT)) install-static: static - install -c -m 0644 libming.a $(libdir)/ + install -c -m 0644 libming.a $(DESTDIR)$(libdir)/ utils: (cd util && make) diff -Naur ming-0.3.0beta2/man/Makefile ming-0.3.0beta2.oden/man/Makefile --- ming-0.3.0beta2/man/Makefile 2005-03-28 00:06:17.000000000 +0200 +++ ming-0.3.0beta2.oden/man/Makefile 2006-02-07 04:01:32.000000000 +0100 @@ -1,7 +1,8 @@ include ../Makefile.config MAN1=makeswf.1 +DESTDIR = install: $(BINARIES) - install -d $(mandir)/man1 - install -m 0644 $(MAN1) $(mandir)/man1 + install -d $(DESTDIR)$(mandir)/man1 + install -m 0644 $(MAN1) $(DESTDIR)$(mandir)/man1 diff -Naur ming-0.3.0beta2/util/Makefile ming-0.3.0beta2.oden/util/Makefile --- ming-0.3.0beta2/util/Makefile 2006-01-25 11:06:53.000000000 +0100 +++ ming-0.3.0beta2.oden/util/Makefile 2006-02-07 04:02:20.000000000 +0100 @@ -2,6 +2,7 @@ CFLAGS += -I.. -I../src LDFLAGS += -L.. -lming $(LIBS) +DESTDIR = UTILOBJ = action.o blocktypes.o decompile.o main.o parser.o read.o @@ -76,6 +77,6 @@ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< install: $(BINARIES) - install -d $(bindir) - install -m 0755 $(BINARIES) $(bindir) - install -m 0755 ming-config $(bindir) + install -d $(DESTDIR)$(bindir) + install -m 0755 $(BINARIES) $(DESTDIR)$(bindir) + install -m 0755 ming-config $(DESTDIR)$(bindir)