mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
$(TOPDIR), make: Start new build architecture
Intermediate commit of half done transition to new build architecture.
This commit is contained in:
parent
fa41ecc8c4
commit
a702e5b714
9 changed files with 142 additions and 50 deletions
35
Makefile
35
Makefile
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue