summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1999-08-18 18:44:55 +0000
committerErik Troan <ewt@redhat.com>1999-08-18 18:44:55 +0000
commit0dd36f7e2651823e4b09581c9bcb356d1f872cb4 (patch)
tree825cea03edc740df82293ecb0f7713c959c84b03 /Makefile
parent91531c3a1f11fd31c594e451175a56f12273bdee (diff)
downloadanaconda-0dd36f7e2651823e4b09581c9bcb356d1f872cb4.tar.gz
anaconda-0dd36f7e2651823e4b09581c9bcb356d1f872cb4.tar.xz
anaconda-0dd36f7e2651823e4b09581c9bcb356d1f872cb4.zip
makefile change
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 8f4fcbecb..9feae4c41 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,6 @@ SUBDIRS = rpmmodule isys balkan po libfdisk collage loader
BUILDONLYSUBDIRS = pump
TOPDIR = ../../..
-DESTDIR = $(TOPDIR)/RedHat/instimage
CATALOGS = po/anaconda-text.pot
ALLSUBDIRS = $(BUILDONLYSUBDIRS) $(SUBDIRS)
@@ -19,10 +18,16 @@ subdirs:
for d in $(ALLSUBDIRS); do make TOPDIR=../$(TOPDIR) -C $$d; done
install: all
+ @if [ "$(DESTDIR)" = "" ]; then \
+ echo " "; \
+ echo "ERROR: A destdir is required"; \
+ exit 1; \
+ fi
mkdir -p $(DESTDIR)/usr/bin
mkdir -p $(DESTDIR)/usr/lib/python1.5/site-packages
mkdir -p $(DESTDIR)/usr/bin/iw
- cp -a anaconda *.py $(DESTDIR)/usr/bin
+ cp -a anaconda $(DESTDIR)/usr/bin
+ cp -a *.py $(DESTDIR)/usr/lib/python1.5/site-packages
cp -a iw/*.py $(DESTDIR)/usr/bin/iw
- cp -a *.so $(DESTDIR)/usr/lib/python1.5/site-packages
- for d in $(SUBDIRS); do make TOPDIR=../$(TOPDIR) -C $$d install; done
+ cp -a *.py *.so $(DESTDIR)/usr/lib/python1.5/site-packages
+ for d in $(SUBDIRS); do make TOPDIR=../$(TOPDIR) DESTDIR=$(DESTDIR) -C $$d install; done