[csw-devel] SF.net SVN: gar:[10003] csw/mgar/pkg/TEMPLATES/createpkg/Makefile

theferret at users.sourceforge.net theferret at users.sourceforge.net
Wed May 26 21:50:18 CEST 2010


Revision: 10003
          http://gar.svn.sourceforge.net/gar/?rev=10003&view=rev
Author:   theferret
Date:     2010-05-26 19:50:18 +0000 (Wed, 26 May 2010)

Log Message:
-----------
TEMPLATES/createpkg/Makefile update

Modified Paths:
--------------
    csw/mgar/pkg/TEMPLATES/createpkg/Makefile

Modified: csw/mgar/pkg/TEMPLATES/createpkg/Makefile
===================================================================
--- csw/mgar/pkg/TEMPLATES/createpkg/Makefile	2010-05-26 19:21:41 UTC (rev 10002)
+++ csw/mgar/pkg/TEMPLATES/createpkg/Makefile	2010-05-26 19:50:18 UTC (rev 10003)
@@ -1,35 +1,57 @@
 #This Makefile originally generated from a template under 
 # pkg/TEMPLATES/createpkg
+# You will most likely have to use GNU make to use it.
 
+
 #Uncomment one of these definitions. The -b invokation,
 # is suitable for use with small packages, where you want to have a few files
 # in your top level src directory. It is also suitable for
 # "relocateable" packages. see the createpkg docs for more details.
 #CREATEPKG=createpkg -b `pwd`
+CREATEPKG=createpkg -r `pwd`/build/*/cswstage
 
 
 BUILDDIR=build/*
 
-CREATEPKG=createpkg -r `pwd`/build/*/cswstage
 
 
 STDFILES=pkginfo copyright prototype
 FILES=
 
-package:	$(STDFILE) $(FILES)
-	$(CREATEPKG)
+all:	build package
 
 
-build:
+build:	build/.config.done
 	(cd $(BUILDDIR) ; \
+	$(MAKE) ; \
+	stagepkg  )
+
+
+# dummy target for configure
+build/.config.done:
+	(cd $(BUILDDIR) ; \
 	test -f ../../patchfile.preconf && \
 		gpatch -p0 <../../patchfile.preconf ; \
-	./configure --prefix=/opt/csw ; \
+	./configure --prefix=/opt/csw --enable-static=no ; \
 	test -f ../../patchfile.postconf && \
-                 gpatch -p0 <../../patchfile.postconf  ; \
-	$(MAKE) ; \
-	cswstage  )
+                 gpatch -p0 <../../patchfile.postconf )
+	touch build/.config.done
 
-clean:
+
+# I tried depending this on   $(BUILDDIR)/config.log  but that didnt stick
+configure:	build/.config.done
+
+package:	$(STDFILE) $(FILES) build
+	$(CREATEPKG)
+
+
+
+pkgclean:
 	rm -f *.pkg.gz package
 
+clean:	pkgclean
+	cd $(BUILDDIR) && make clean
+
+reallyclean:	clean
+	rm -f $BUILDDIR/config.log $BUILDDIR/config.cache $BUILDDIR/config.status
+	rm -f build/.config.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