$(TOPDIR), make: Start new build architecture

Intermediate commit of half done transition to new build
architecture.
This commit is contained in:
Jan Lindemann 2002-06-10 14:28:18 +00:00 committed by Jan Lindemann
commit a702e5b714
9 changed files with 142 additions and 50 deletions

View file

@ -1,40 +1,13 @@
MODDIR=.
SUBDIRS = $(shell find . -type d -maxdepth 1 | grep -ve "include\|CVS\|lib\|nomake\|dist\|old" | grep /)
include $(MODDIR)/make/defs.mk
SUBDIRS = $(REQUIRED)
include $(MODDIR)/make/rules.mk
include $(MODDIR)/make/libdist.mk
TEMP_BUILD_DIR = $(shell find $(TEMP_DIR) -name Makefile -maxdepth 2 | tail -1 | xargs dirname)
include $(MODDIR)/make/rpmdist.mk
all:
$(make_subdirs_target)
make $(LIB_SO)
libstat:
$(make_subdirs)
clean distclean:
$(make_subdirs_target)
install: all $(INSTALL_LIBDIR)
make -C lib install
install-devel: install
make -C include install
libshared: libstat $(LIB_SO)
distclean: clean.dist
rpm.untar-build: rpm.untar
make -C $(TEMP_BUILD_DIR) rpm.build
rpm.untar: build.dist
rm -rf $(TEMP_DIR)
mkdir -p $(TEMP_DIR)
tar -xzf $(DIST_FILE) -C $(TEMP_DIR)
rpm.build-devel:
sudo -u root "make install"
rpm.build-user:
sudo -u root "make install"
rpm.build: rpm.build-devel rpm.build-user
install: all
$(make_subdirs_target)