On Tue, 2010-05-04 at 18:12 -0700, Alan Coopersmith wrote:
> Laszlo (Laca) Peter wrote:
> > Like you say, the GNOME project provides common Makefiles in
> > gnome-common.  GNU make does not come with useful standard
> > Makefiles AFAIK.
> 
> GNU & Solaris make both come with makefile fragments included
> by default to define useful standard rules like
> 
> .c.o:
>       $(CC) -c $@ $<
> 
> See /usr/share/lib/make/make.rules for Solaris make - I believe
> GNU make's are hardcoded in the gmake binary.
> 
> Whether something similar makes sense for pkgbuild, either now
> or in a later case, is a different question.

I think the equivalent in pkgbuild would be the macros file
(which was adopted from rpmbuild's macros file) that lives in
$(libdir)/pkgbuild-$(version)/macros

It includes some standard macro definitions like:

%makeinstall \
  make \\\
        prefix=%{?buildroot:%{buildroot}}%{_prefix} \\\
        exec_prefix=%{?buildroot:%{buildroot}}%{_exec_prefix} \\\
        bindir=%{?buildroot:%{buildroot}}%{_bindir} \\\
        sbindir=%{?buildroot:%{buildroot}}%{_sbindir} \\\
        sysconfdir=%{?buildroot:%{buildroot}}%{_sysconfdir} \\\
        datadir=%{?buildroot:%{buildroot}}%{_datadir} \\\
        includedir=%{?buildroot:%{buildroot}}%{_includedir} \\\
        libdir=%{?buildroot:%{buildroot}}%{_libdir} \\\
        libexecdir=%{?buildroot:%{buildroot}}%{_libexecdir} \\\
        localstatedir=%{?buildroot:%{buildroot}}%{_localstatedir} \\\
        sharedstatedir=%{?buildroot:%{buildroot}}%{_sharedstatedir} \\\
        mandir=%{?buildroot:%{buildroot}}%{_mandir} \\\
        infodir=%{?buildroot:%{buildroot}}%{_infodir} \\\
  install

%_prefix                /usr
%_exec_prefix           %{_prefix}
%_bindir                %{_exec_prefix}/bin
%_sbindir               %{_exec_prefix}/sbin
%_libexecdir            %{_exec_prefix}/libexec
%_datadir               %{_prefix}/share
%_sysconfdir            %{_prefix}/etc
%_sharedstatedir        %{_prefix}/com
%_localstatedir         %{_prefix}/var

Laca


_______________________________________________
opensolaris-arc mailing list
[email protected]

Reply via email to