include Makefile.inc VERSION = 7.2.90 RELEASE = 0 SNAPRELEASE = $(RELEASE)$(shell date "+.%Y%m%d%H%M") ifneq (ia64, $(ARCH)) MINISLANG=minislang STUBS=stubs endif SUBDIRSHD = balkan isys collage $(MINISLANG) loader po text-help \ textw utils scripts bootdisk installclasses \ keymaps fonts iw help pixmaps $(STUBS) iconvmodule SUBDIRS = $(SUBDIRSHD) ifeq (i386, $(ARCH)) SUBDIRS := ddcprobe edd $(SUBDIRS) 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 -O2 -fPIC -I$(PYTHONINCLUDE) `pkg-config --cflags gtk+-2.0` -c xkb.c gcc -o _xkb.so -shared _xkb.o /usr/X11R6/lib/libxkbfile.a `pkg-config --libs gtk+-2.0` xmouse.so: xmouse.c gcc -Wall -o xmouse.o -fPIC -I/usr/X11R6/include -I$(PYTHONINCLUDE) -I $(PYTHONINCLUDE) -c xmouse.c gcc -o xmouse.so -shared xmouse.o /usr/X11R6/lib/libXxf86misc.a -L/usr/X11R6/lib -lX11 -lXext depend: rm -f *.o *.so *.pyc for d in $(SUBDIRS); do make -C $$d depend; done 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 # this rule is a hack install-python: cp -var $(PYFILES) $(DESTDIR)/$(PYTHONLIBDIR) ./py-compile --basedir $(DESTDIR)/$(PYTHONLIBDIR) $(PYFILES) install -m 755 anaconda $(DESTDIR)/usr/bin/anaconda for d in installclasses isys iw textw; do make DESTDIR=`cd $(DESTDIR); pwd` -C $$d install; [ $$? = 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) mkdir -p $(DESTDIR)/$(ANACONDADATADIR) 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) install -m 644 anaconda.conf $(DESTDIR)/$(ANACONDADATADIR) cp -var $(PYFILES) $(DESTDIR)/$(PYTHONLIBDIR) cp -a lang-table $(DESTDIR)/$(PYTHONLIBDIR) cp -a lang-table-kon $(DESTDIR)/$(PYTHONLIBDIR) ./py-compile --basedir $(DESTDIR)/$(PYTHONLIBDIR) $(PYFILES) cp -a *.so $(DESTDIR)/$(PYTHONLIBDIR) strip $(DESTDIR)/$(PYTHONLIBDIR)/*.so cp -a raid*stub $(DESTDIR)/$(PYTHONLIBDIR) cp -a losetup-stub $(DESTDIR)/$(PYTHONLIBDIR) cp -a pump-stub $(DESTDIR)/$(PYTHONLIBDIR) for d in $(SUBDIRS); do make DESTDIR=`cd $(DESTDIR); pwd` -C $$d install; [ $$? = 0 ] || exit 1; done archive: create-archive src: create-archive @rpm -ts --nodeps anaconda-$(VERSION).tar.bz2 snapsrc: create-snapshot @rpm -ts --nodeps anaconda-$(VERSION).tar.bz2 create-snapshot: @rm -rf /tmp/anaconda @rm -rf /tmp/anaconda-$(VERSION) @tag=`cvs status Makefile | awk ' /Sticky Tag/ { print $$3 } '` 2> /dev/null; \ [ x"$$tag" = x"(none)" ] && tag=HEAD; \ echo "*** Pulling off $$tag!"; \ cd /tmp ; cvs -Q -d $(CVSROOT) export -r $$tag anaconda || echo "Um... export aborted." @cd /tmp/anaconda ; rm -f isys/modutils/modutils.spec @cd /tmp/anaconda ; rm -f pycheckrc-for-anaconda @cd /tmp/anaconda ; rm -rf comps @cd /tmp/anaconda ; sed -e "s/@@VERSION@@/$(VERSION)/g" -e "s/@@RELEASE@@/$(SNAPRELEASE)/g" < anaconda.spec.in > anaconda.spec @mv /tmp/anaconda /tmp/anaconda-$(VERSION) @cd /tmp ; tar --bzip2 -cSpf anaconda-$(VERSION).tar.bz2 anaconda-$(VERSION) @rm -rf /tmp/anaconda-$(VERSION) @cp /tmp/anaconda-$(VERSION).tar.bz2 . @rm -f /tmp/anaconda-$(VERSION).tar.bz2 @echo "" @echo "The final archive is in anaconda-$(VERSION).tar.bz2" create-archive: make SNAPRELEASE=$(RELEASE) create-snapshot pycheck: PYTHONPATH=edd:isys:balkan:textw:iw:installclasses:iconvmodule pychecker *.py textw/*.py iw/*.py | grep -v "__init__() not called" pycheck-file: PYTHONPATH=.:edd:isys:balkan:textw:iw:installclasses:gnome-map:iconvmodule pychecker $(CHECK) | grep -v "__init__() not called"