mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
$(TOPDIR), make: Intermediate commit of revised build architecture
This commit is contained in:
parent
e752d5dc7d
commit
405f0aa49d
8 changed files with 212 additions and 31 deletions
42
Makefile
42
Makefile
|
|
@ -1,4 +1,40 @@
|
|||
MODDIR=.
|
||||
CLEAN = include lib
|
||||
SUBDIRS = $(shell find . -type d -maxdepth 1 | grep -ve "include\|CVS\|lib\|nomake" | grep /)
|
||||
include $(MODDIR)/make/dirs.mk
|
||||
SUBDIRS = $(shell find . -type d -maxdepth 1 | grep -ve "include\|CVS\|lib\|nomake\|dist\|old" | grep /)
|
||||
|
||||
include $(MODDIR)/make/defs.mk
|
||||
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)
|
||||
|
||||
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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue