include Makefile.inc VERSION = 7.0 SUBDIRSHD = rpmmodule balkan isys libfdisk collage loader po \ minislang textw utils scripts bootdisk SUBDIRS = $(SUBDIRSHD) ifneq (ia64, $(ARCH)) SUBDIRSHD += stubs SUBDIRS = $(SUBDIRSHD) gnome-map iw help pixmaps endif ifeq (i386, $(ARCH)) SUBDIRS += ddcprobe endif # DESTDIR - destination for install image for install purposes DESTDIR = ../../../RedHat/instimage CATALOGS = po/anaconda.pot PYFILES = $(wildcard *.py) all: subdirs _xkb.so xmouse.so $(CATALOGS) lang-table _xkb.so: xkb.c gcc -Wall -o _xkb.o -fPIC -I/usr/include/python1.5 `gtk-config --cflags gtk` -c xkb.c gcc -o _xkb.so -shared _xkb.o /usr/X11R6/lib/libxkbfile.a `gtk-config --libs gtk` xmouse.so: xmouse.c gcc -Wall -o xmouse.o -fPIC -I/usr/X11R6/include -I/usr/include/python1.5 -I /usr/include/python1.5 -c xmouse.c gcc -o xmouse.so -shared xmouse.o /usr/X11R6/lib/libXxf86misc.a -L/usr/X11R6/lib -lX11 -lXext clean: rm -f *.o *.so *.pyc for d in $(SUBDIRS); do make -C $$d clean; done subdirs: for d in $(SUBDIRS); do make -C $$d; [ $$? = 0 ] || exit 1; done install: @if [ "$(DESTDIR)" = "" ]; then \ echo " "; \ echo "ERROR: A destdir is required"; \ exit 1; \ fi mkdir -p $(DESTDIR)/usr/bin mkdir -p $(DESTDIR)/usr/sbin mkdir -p $(DESTDIR)/etc/rc.d/init.d mkdir -p $(DESTDIR)/$(PYTHONLIBDIR) mkdir -p $(DESTDIR)/$(RUNTIMEDIR) cp -a reconfig.init $(DESTDIR)/etc/rc.d/init.d/reconfig install -m 755 anaconda $(DESTDIR)/usr/sbin/anaconda install -m 755 anaconda-stub $(DESTDIR)/$(RUNTIMEDIR) cp -var $(PYFILES) $(DESTDIR)/$(PYTHONLIBDIR) cp -a lang-table $(DESTDIR)/$(PYTHONLIBDIR) ./py-compile --basedir $(DESTDIR)/$(PYTHONLIBDIR) $(PYFILES) cp -a *.so $(DESTDIR)/$(PYTHONLIBDIR) for d in $(SUBDIRS); do make DESTDIR=`cd $(DESTDIR); pwd` -C $$d install; [ $$? = 0 ] || exit 1; done archive: create-archive create-archive: @rm -rf /tmp/anaconda @rm -rf /tmp/anaconda-$(VERSION) @echo "WARNING WARNING WARNING: Pulling HEAD off - need to do tagging instead!" @cd /tmp ; cvs -Q -d $(CVSROOT) export -r HEAD anaconda || echo "Um... export aborted." @cd /tmp/anaconda ; rm isys/modutils/modutils.spec @cd /tmp/anaconda ; sed -e "s/@@VERSION@@/$(VERSION)/g" < anaconda.spec.in > anaconda.spec @mv /tmp/anaconda /tmp/anaconda-$(VERSION) @cd /tmp ; tar -czSpf anaconda-$(VERSION).tar.gz anaconda-$(VERSION) @rm -rf /tmp/anaconda-$(VERSION) @cp /tmp/anaconda-$(VERSION).tar.gz . @rm -f /tmp/anaconda-$(VERSION).tar.gz @echo "" @echo "The final archive is in anaconda-$(VERSION).tar.gz"