FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Makefile

 
Post new topic   Reply to topic     Forum Index -> gtkD
View previous topic :: View next topic  
Author Message
bioinfornatics



Joined: 22 Jun 2010
Posts: 90

PostPosted: Sun Oct 23, 2011 5:33 pm    Post subject: Makefile Reply with quote

In first thanks to Mikle for your project gtkd. I will add your project in Fedora 16 ao before one thing. in your make file could you create a var libdir.
Code:
libdir=lib

and replace in your makefile by this var like
Code:
$(DESTDIR)$(prefix)/$(libdir)

why ?
because most of linux distribution use for 64 lib another dir named lib64 and it seem for gento they use lib32 so if you create this var i could do
Code:
make install libdir=lib64


Thanks

kind regards


Patch
Code:

diff -up gtkd/GNUmakefile.fix gtkd/GNUmakefile
--- gtkd/GNUmakefile.fix   2011-10-24 01:41:30.349382710 +0200
+++ gtkd/GNUmakefile   2011-10-24 01:42:11.227279503 +0200
@@ -1,7 +1,7 @@
 #makeAll.sh
 SHELL=/bin/sh
 prefix=/usr/local
-
+libdir=lib
 OS=$(shell uname || uname -s)
 ARCH=$(shell arch || uname -m)
 
@@ -215,64 +215,64 @@ endif
 install-gtkd: gtkd
    install -d $(DESTDIR)$(prefix)/include/d
    (cd src;   echo $(SOURCES_GTKD)   | sed -e s,src/,,g   | xargs tar c) | (cd $(DESTDIR)$(prefix)/include/d; tar xv)
-   install -d $(DESTDIR)$(prefix)/lib
-   install -m 644 $(LIBNAME_GTKD)   $(DESTDIR)$(prefix)/lib
+   install -d $(DESTDIR)$(prefix)/$(libdir)
+   install -m 644 $(LIBNAME_GTKD)   $(DESTDIR)$(prefix)/$(libdir)
 
 install-gtkdgl: gtkdgl install-gtkd
    (cd srcgl; echo $(SOURCES_GTKDGL) | sed -e s,srcgl/,,g | xargs tar c) | (cd $(DESTDIR)$(prefix)/include/d; tar xv)
-   install -m 644 $(LIBNAME_GTKDGL) $(DESTDIR)$(prefix)/lib
+   install -m 644 $(LIBNAME_GTKDGL) $(DESTDIR)$(prefix)/$(libdir)
 
 install-gtkdsv: sv install-gtkd
    (cd srcsv; echo $(SOURCES_GTKDSV) | sed -e s,srcsv/,,g | xargs tar c) | (cd $(DESTDIR)$(prefix)/include/d; tar xv)
-   install -m 644 $(LIBNAME_GTKDSV) $(DESTDIR)$(prefix)/lib
+   install -m 644 $(LIBNAME_GTKDSV) $(DESTDIR)$(prefix)/$(libdir)
 
 install-gda: gda install-gtkd
    (cd srcgda; echo $(SOURCES_GTKDGDA) | sed -e s,srcgda/,,g | xargs tar c) | (cd $(DESTDIR)$(prefix)/include/d; tar xv)
-   install -m 644 $(LIBNAME_GTKDGDA) $(DESTDIR)$(prefix)/lib
+   install -m 644 $(LIBNAME_GTKDGDA) $(DESTDIR)$(prefix)/$(libdir)
 
 install-gstreamer: gstreamer install-gtkd
    (cd srcgstreamer; echo $(SOURCES_GSTREAMERD) | sed -e s,srcgstreamer/,,g | xargs tar c) | (cd $(DESTDIR)$(prefix)/include/d; tar xv)
-   install -m 644 $(LIBNAME_GSTREAMERD) $(DESTDIR)$(prefix)/lib
+   install -m 644 $(LIBNAME_GSTREAMERD) $(DESTDIR)$(prefix)/$(libdir)
 
 install-shared-gtkd: shared-gtkd install-gtkd
-   install -m 644 $(SONAME_GTKD)   $(DESTDIR)$(prefix)/lib
+   install -m 644 $(SONAME_GTKD)   $(DESTDIR)$(prefix)/$(libdir)
 
 install-shared-gtkdgl: shared-gtkdgl install-gtkdgl
-   install -m 644 $(SONAME_GTKDGL)   $(DESTDIR)$(prefix)/lib
+   install -m 644 $(SONAME_GTKDGL)   $(DESTDIR)$(prefix)/$(libdir)
 
 install-shared-gtkdsv: shared-sv install-gtkdsv
-   install -m 644 $(SONAME_GTKDSV)   $(DESTDIR)$(prefix)/lib
+   install -m 644 $(SONAME_GTKDSV)   $(DESTDIR)$(prefix)/$(libdir)
 
 install-shared-gda: shared-gda install-gtkdsv
-   install -m 644 $(SONAME_GTKDGDA)   $(DESTDIR)$(prefix)/lib
+   install -m 644 $(SONAME_GTKDGDA)   $(DESTDIR)$(prefix)/$(libdir)
 
 install-shared-gstreamer: shared-gstreamer install-gstreamer
-   install -m 644 $(SONAME_GTKDGDA)   $(DESTDIR)$(prefix)/lib
+   install -m 644 $(SONAME_GTKDGDA)   $(DESTDIR)$(prefix)/$(libdir)
 
 uninstall: uninstall-gtkdgl uninstall-gtkdsv uninstall-gda uninstall-gstreamer
    $(foreach dir,$(shell ls src)  , rm -rf $(DESTDIR)$(prefix)/include/d/$(dir))
-   rm -f $(DESTDIR)$(prefix)/lib/$(LIBNAME_GTKD)
-   rm -f $(DESTDIR)$(prefix)/lib/$(SONAME_GTKD)
+   rm -f $(DESTDIR)$(prefix)/$(libdir)/$(LIBNAME_GTKD)
+   rm -f $(DESTDIR)$(prefix)/$(libdir)/$(SONAME_GTKD)
 
 uninstall-gtkdgl:
    $(foreach dir,$(shell ls srcsv), rm -rf $(DESTDIR)$(prefix)/include/d/$(dir))
-   rm -f $(DESTDIR)$(prefix)/lib/$(LIBNAME_GTKDGL)
-   rm -f $(DESTDIR)$(prefix)/lib/$(SONAME_GTKDGL)
+   rm -f $(DESTDIR)$(prefix)/$(libdir)/$(LIBNAME_GTKDGL)
+   rm -f $(DESTDIR)$(prefix)/$(libdir)/$(SONAME_GTKDGL)
 
 uninstall-gtkdsv:
    $(foreach dir,$(shell ls srcgl), rm -rf $(DESTDIR)$(prefix)/include/d/$(dir))
-   rm -f $(DESTDIR)$(prefix)/lib/$(LIBNAME_GTKDSV)
-   rm -f $(DESTDIR)$(prefix)/lib/$(SONAME_GTKDSV)
+   rm -f $(DESTDIR)$(prefix)/$(libdir)/$(LIBNAME_GTKDSV)
+   rm -f $(DESTDIR)$(prefix)/$(libdir)/$(SONAME_GTKDSV)
 
 uninstall-gda:
    $(foreach dir,$(shell ls srcgda), rm -rf $(DESTDIR)$(prefix)/include/d/$(dir))
-   rm -f $(DESTDIR)$(prefix)/lib/$(LIBNAME_GTKDGDA)
-   rm -f $(DESTDIR)$(prefix)/lib/$(SONAME_GTKDGDA)
+   rm -f $(DESTDIR)$(prefix)/$(libdir)/$(LIBNAME_GTKDGDA)
+   rm -f $(DESTDIR)$(prefix)/$(libdir)/$(SONAME_GTKDGDA)
 
 uninstall-gstreamer:
    $(foreach dir,$(shell ls srcgstreamer), rm -rf $(DESTDIR)$(prefix)/include/d/$(dir))
-   rm -f $(DESTDIR)$(prefix)/lib/$(LIBNAME_GSTREAMERD)
-   rm -f $(DESTDIR)$(prefix)/lib/$(SONAME_GSTREAMERD)
+   rm -f $(DESTDIR)$(prefix)/$(libdir)/$(LIBNAME_GSTREAMERD)
+   rm -f $(DESTDIR)$(prefix)/$(libdir)/$(SONAME_GSTREAMERD)
 
 clean:
    -rm -f $(LIBNAME_GTKD)       $(SONAME_GTKD)       $(OBJECTS_GTKD)       $(PICOBJECTS_GTKD)
Back to top
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Mon Oct 24, 2011 2:44 pm    Post subject: Reply with quote

Added in svn r906.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> gtkD All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group