Check-in [2c61bc2285]
Overview
Comment:Added DESTDIR support
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 2c61bc228577b010eb43d1571c7c6ee1bd165786
User & Date: rkeene on 2014-11-24 19:05:10
Other Links: manifest | tags
Context
2014-11-24
19:14
Updated to correctly handle out-of-directory builds check-in: adc5ae917e user: rkeene tags: trunk
19:05
Added DESTDIR support check-in: 2c61bc2285 user: rkeene tags: trunk
19:04
Updated vendor check-in: 1be1ec0717 user: rkeene tags: trunk
Changes

Modified Makefile.in from [3788187186] to [d0ff1229aa].

    64     64   	echo '		*;' >> '$@'
    65     65   	echo '};' >> '$@'
    66     66   
    67     67   test-lc$(EXEEXT): $(LIBS) $(srcdir)/test-lc.c
    68     68   	$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $(filter %.c, $^) $(LDFLAGS) -Wl,-R -Wl,. -L. -lconfig
    69     69   
    70     70   install: all libconfig.h
    71         -	-$(INSTALL) -d "$(mandir)"
    72         -	-$(INSTALL) -d "$(mandir)/man3"
    73         -	-$(INSTALL) -d "$(libdir)"
    74         -	-$(INSTALL) -d "$(includedir)"
    75         -	-$(INSTALL) -m 644 libconfig.$(SHOBJEXT).def "$(libdir)/libconfig.$(SHOBJEXT).def"
    76         -	-$(INSTALL) -m 644 libconfig.$(SHOBJEXT).a "$(libdir)/libconfig.$(SHOBJEXT).a"
    77         -	$(INSTALL) -m 755 libconfig.$(SHOBJEXT) "$(libdir)/libconfig.$(SHOBJEXT).$(PKGVERS)"
    78         -	$(INSTALL) -m 644 libconfig.$(AREXT) "$(libdir)/libconfig.$(AREXT)"
    79         -	$(INSTALL) -m 644 lc_register_callback.3 "$(mandir)/man3/lc_register_callback.3"
    80         -	$(INSTALL) -m 644 lc_register_var.3 "$(mandir)/man3/lc_register_var.3"
    81         -	$(INSTALL) -m 644 lc_process_file.3 "$(mandir)/man3/lc_process_file.3"
    82         -	$(INSTALL) -m 644 lc_handle_type.3 "$(mandir)/man3/lc_handle_type.3"
    83         -	$(INSTALL) -m 644 lc_geterrstr.3 "$(mandir)/man3/lc_geterrstr.3"
    84         -	$(INSTALL) -m 644 lc_seterrstr.3 "$(mandir)/man3/lc_seterrstr.3"
    85         -	$(INSTALL) -m 644 lc_geterrno.3 "$(mandir)/man3/lc_geterrno.3"
    86         -	$(INSTALL) -m 644 lc_process.3 "$(mandir)/man3/lc_process.3"
    87         -	$(INSTALL) -m 644 lc_cleanup.3 "$(mandir)/man3/lc_cleanup.3"
    88         -	$(INSTALL) -m 644 libconfig.3 "$(mandir)/man3/libconfig.3"
    89         -	$(INSTALL) -m 644 libconfig.h "$(includedir)/libconfig.h"
    90         -	-( cd "$(libdir)" && rm -f libconfig.$(SHOBJEXT).$(PKGVERSMAJOR) && $(LN_S) libconfig.$(SHOBJEXT).$(PKGVERS) libconfig.$(SHOBJEXT).$(PKGVERSMAJOR) )
    91         -	-( cd "$(libdir)" && rm -f libconfig.$(SHOBJEXT) && $(LN_S) libconfig.$(SHOBJEXT).$(PKGVERS) libconfig.$(SHOBJEXT) )
           71  +	-$(INSTALL) -d "$(DESTDIR)$(mandir)"
           72  +	-$(INSTALL) -d "$(DESTDIR)$(mandir)/man3"
           73  +	-$(INSTALL) -d "$(DESTDIR)$(libdir)"
           74  +	-$(INSTALL) -d "$(DESTDIR)$(includedir)"
           75  +	-$(INSTALL) -m 644 libconfig.$(SHOBJEXT).def "$(DESTDIR)$(libdir)/libconfig.def"
           76  +	-$(INSTALL) -m 644 libconfig.$(SHOBJEXT).a "$(DESTDIR)$(libdir)/libconfig.lib"
           77  +	$(INSTALL) -m 755 libconfig.$(SHOBJEXT) "$(DESTDIR)$(libdir)/libconfig.$(SHOBJEXT).$(PKGVERS)"
           78  +	$(INSTALL) -m 644 libconfig.$(AREXT) "$(DESTDIR)$(libdir)/libconfig.$(AREXT)"
           79  +	$(INSTALL) -m 644 lc_register_callback.3 "$(DESTDIR)$(mandir)/man3/lc_register_callback.3"
           80  +	$(INSTALL) -m 644 lc_register_var.3 "$(DESTDIR)$(mandir)/man3/lc_register_var.3"
           81  +	$(INSTALL) -m 644 lc_process_file.3 "$(DESTDIR)$(mandir)/man3/lc_process_file.3"
           82  +	$(INSTALL) -m 644 lc_handle_type.3 "$(DESTDIR)$(mandir)/man3/lc_handle_type.3"
           83  +	$(INSTALL) -m 644 lc_geterrstr.3 "$(DESTDIR)$(mandir)/man3/lc_geterrstr.3"
           84  +	$(INSTALL) -m 644 lc_seterrstr.3 "$(DESTDIR)$(mandir)/man3/lc_seterrstr.3"
           85  +	$(INSTALL) -m 644 lc_geterrno.3 "$(DESTDIR)$(mandir)/man3/lc_geterrno.3"
           86  +	$(INSTALL) -m 644 lc_process.3 "$(DESTDIR)$(mandir)/man3/lc_process.3"
           87  +	$(INSTALL) -m 644 lc_cleanup.3 "$(DESTDIR)$(mandir)/man3/lc_cleanup.3"
           88  +	$(INSTALL) -m 644 libconfig.3 "$(DESTDIR)$(mandir)/man3/libconfig.3"
           89  +	$(INSTALL) -m 644 libconfig.h "$(DESTDIR)$(includedir)/libconfig.h"
           90  +	-( cd "$(DESTDIR)$(libdir)" && rm -f libconfig.$(SHOBJEXT).$(PKGVERSMAJOR) && $(LN_S) libconfig.$(SHOBJEXT).$(PKGVERS) libconfig.$(SHOBJEXT).$(PKGVERSMAJOR) )
           91  +	-( cd "$(DESTDIR)$(libdir)" && rm -f libconfig.$(SHOBJEXT) && $(LN_S) libconfig.$(SHOBJEXT).$(PKGVERS) libconfig.$(SHOBJEXT) )
    92     92   
    93     93   clean:
    94     94   	rm -f *.o $(BINS) $(LIBS) *~ test-lc$(EXEEXT) *.dll.a *.dll.def *.dll
    95     95   
    96     96   distclean: clean
    97     97   	rm -f Makefile config.h config.status config.log lc_geterrno.3 lc_process.3 lc_cleanup.3 lc_process_file.3 lc_register_var.3 lc_geterrstr.3 lc_register_callback.3 libconfig.3 libconfig.syms
    98     98   
    99     99   mrproper: distclean
   100    100   	rm -f aclocal.m4 config.guess config.sub install-sh configure
   101    101   
   102    102   .PHONY: all clean distclean install