[csw-devel] SF.net SVN: gar:[18930] csw/mgar/pkg/autogen/trunk/Makefile

pfelecan at users.sourceforge.net pfelecan at users.sourceforge.net
Tue Aug 14 11:02:07 CEST 2012


Revision: 18930
          http://gar.svn.sourceforge.net/gar/?rev=18930&view=rev
Author:   pfelecan
Date:     2012-08-14 09:02:06 +0000 (Tue, 14 Aug 2012)
Log Message:
-----------
autogen/trunk: adapted to my superior knowledge of GAR as this is one
of my first packages using GAR

Modified Paths:
--------------
    csw/mgar/pkg/autogen/trunk/Makefile

Modified: csw/mgar/pkg/autogen/trunk/Makefile
===================================================================
--- csw/mgar/pkg/autogen/trunk/Makefile	2012-08-13 20:41:49 UTC (rev 18929)
+++ csw/mgar/pkg/autogen/trunk/Makefile	2012-08-14 09:02:06 UTC (rev 18930)
@@ -1,6 +1,5 @@
 # $Id$
-# TODO (release-critical prefixed with !, non release-critical with *)
-#
+
 NAME = autogen
 # Tried to package the last versions but encountered issues for which
 # I didn't found a solution:
@@ -26,7 +25,6 @@
 
 CONFIGURE_ARGS = $(DIRPATHS)
 GARCOMPILER			=	GNU
-#GCC4_VERSION		=	4.7
 
 BUILD_DEP_PKGS		=	CSWguile
 BUILD_DEP_PKGS		+=	CSWguilelib12
@@ -98,30 +96,32 @@
 
 include gar/category.mk
 
+PATH := /opt/csw/gnu:/opt/csw/libexec/flex-2.5.35/bin:$(PATH)
+
 build-nominal:
-	PATH="/opt/csw/gnu:$$PATH" $(MAKE) -C $(WORKSRC)
+	cd $(WORKSRC) && /usr/bin/env -i $(BUILD_ENV) && $(MAKE) -C $(OBJDIR)
 	$(MAKECOOKIE)
 
 build-dvi:
-	PATH="/opt/csw/gnu:$$PATH" $(MAKE) -C $(WORKSRC) $(subst build-,,$@)
+	cd $(WORKSRC) && /usr/bin/env -i $(BUILD_ENV) && $(MAKE) -C $(OBJDIR) $(subst build-,,$@)
 	$(MAKECOOKIE)
 
 build-ps:
-	PATH="/opt/csw/gnu:$$PATH" $(MAKE) -C $(WORKSRC) $(subst build-,,$@)
+	cd $(WORKSRC) && /usr/bin/env -i $(BUILD_ENV) && $(MAKE) -C $(OBJDIR) $(subst build-,,$@)
 	$(MAKECOOKIE)
 
 build-pdf:
-	PATH="/opt/csw/gnu:$$PATH" $(MAKE) -C $(WORKSRC) $(subst build-,,$@)
+	cd $(WORKSRC) && /usr/bin/env -i $(BUILD_ENV) && $(MAKE) -C $(OBJDIR) $(subst build-,,$@)
 	$(MAKECOOKIE)
 
 # there is one test failing (keyword.test) and I choose to ignore it
 # as the remaining ones pass.
 test-custom:
-	-$(MAKE) -k -C $(WORKSRC) check
+	cd $(WORKSRC) && /usr/bin/env -i $(BUILD_ENV) && $(MAKE) -i -k -C $(OBJDIR) check
 	$(MAKECOOKIE)
 
 install-nominal:
-	PATH="/opt/csw/gnu:$$PATH" $(MAKE) -C $(WORKSRC) DESTDIR="$(DESTDIR)" install
+	cd $(WORKSRC) && /usr/bin/env -i $(INSTALL_ENV) && $(MAKE) -C $(OBJDIR) $(INSTALL_ARGS) DESTDIR=$(DESTDIR) install
 	rm -rf "$(DESTDIR)$(datadir)/$(NAME)/"*.tar.gz
 	$(MAKECOOKIE)
 
@@ -142,4 +142,4 @@
 
 # this is private and not available publicly
 mydependencies:
-	$(HOME)/bin/ocswdeplist --package $(NAME)
+	for package in CSW$(NAME); do echo '___' $${package}; $(HOME)/bin/ocswdeplist --depth 1 --dependencies --packaging --csw --prototype $(HOME)/opencsw/$(NAME)/trunk/work/build-global/$${package}.prototype --target $(HOME)/opencsw/$(NAME)/trunk/work/pkgroot; done

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list