integrate options in the main script

Former-commit-id: e046ef88288559ed68463d3e9fd334ff0a8d1ec6
Former-commit-id: a2f99a532f7ce1b3114385c49affc197419a04d9
This commit is contained in:
2015-12-18 22:05:51 +01:00
parent 99865ad568
commit f39e66d4c1
2 changed files with 67 additions and 13 deletions

View File

@ -41,20 +41,28 @@ pkg.make:: pkg.expand
export LDFLAGS="$(LDFLAGS)" && \
cd $(PKGDIR) && \
./configure --prefix=$(PRTPATH) $(CONFIGURE_OPTIONS))
$(MAKE) -C $(PKGDIR)
(export PATH="$(PRTPATH_BIN):$$PATH" && \
export PKG_CONFIG=$(PKG_CONFIG) && \
export CC="$(CC)" && \
export CXX="$(CXX)" && \
export CPP="$(CPP)" && \
export CXXPP="$(CXXPP)" && \
export CFLAGS="$(CFLAGS)" && \
export LDFLAGS="$(LDFLAGS)" && \
$(MAKE) $(MAKEOPTIONS) -C $(PKGDIR))
pkg.install:: pkg.make
$(MAKE) -C $(PKGDIR) install
$(MAKE) $(MAKEOPTIONS) -C $(PKGDIR) install
pkg:: pkg.install
@echo "+++++++++++ package $(PKG) done"
test::
(! test -d $(PKGDIR)) || $(MAKE) -C $(PKGDIR) test
(! test -d $(PKGDIR)) || $(MAKE) $(MAKEOPTIONS) -C $(PKGDIR) test
clean::
(! test -d $(PKGDIR)) || $(MAKE) -C $(PKGDIR) clean
(! test -d $(PKGDIR)) || $(MAKE) $(MAKEOPTIONS) -C $(PKGDIR) clean
portclean::
(! test -d $(PKGDIR)) || $(MAKE) -C $(PKGDIR) distclean
(! test -d $(PKGDIR)) || $(MAKE) $(MAKEOPTIONS) -C $(PKGDIR) distclean
(! test -d $(PKGDIR)) || \rm -r $(PKGDIR)