src/Makefile.am
author J. Ali Harlow <ali@juiblex.co.uk>
Thu Oct 09 17:27:41 2014 +0100 (2014-10-09)
changeset 455 df914f383f5c
parent 453 1fd1d221092d
child 476 48e45439fd9a
permissions -rw-r--r--
Support downloading from local repository even without libcurl

Using the --url option of the razor executable, it is possible
to specify a yum repository on the local machine (eg., on installation
media) and import from there, eg.,:

C> razor --url file:///d:/ import-yum

This will be handled by libcurl if available but if not, an internal
copy routine will be used.

Note that if Microsoft's KTM implementation of atomic transactions is
used, then the current directory must support atomic transactions
(also improve error messages for this, and other, cases).
     1 ## Process this file with automake to produce Makefile.in
     2 
     3 INCLUDES = \
     4 	$(LUA_CFLAGS) \
     5 	$(CURL_CFLAGS) \
     6 	$(EXPAT_CFLAGS) \
     7 	$(RPM_CFLAGS) \
     8 	-I$(top_builddir)/gl -I$(top_srcdir)/gl \
     9 	-I$(top_builddir)/src -I$(top_srcdir)/src \
    10 	-I$(top_builddir)/librazor -I$(top_srcdir)/librazor \
    11 	-DPACKAGE_LIBEXEC_DIR=\""$(libexecdir)"\" \
    12 	-DPACKAGE_SYSCONF_DIR=\""$(sysconfdir)"\" \
    13 	-DPACKAGE_DATA_DIR=\""$(datadir)"\" \
    14 	-DPACKAGE_BIN_DIR=\""$(bindir)"\" \
    15 	-DPACKAGE_LOCALSTATEDIR=\""$(localstatedir)"\" \
    16 	-DPACKAGE_LOCALE_DIR=\""$(localedir)"\"
    17 
    18 bin_PROGRAMS = razor
    19 noinst_PROGRAMS = rpm
    20 check_PROGRAMS = test-driver
    21 
    22 if INSTALL_TEST_PROGRAMS
    23   bin_PROGRAMS = $(check_PROGRAMS)
    24   pkgdata_DATA = test.xml
    25 endif
    26 
    27 razor_SOURCES = main.c import-yum.c
    28 if HAVE_RPMLIB
    29 razor_SOURCES += import-rpmdb.c
    30 endif
    31 razor_LDADD = $(top_builddir)/librazor/librazor.la $(RPM_LIBS) $(EXPAT_LIBS) $(CURL_LIBS) $(LUA_LIBS) $(top_builddir)/gl/libgnu.la $(INTLLIBS) $(EXTRA_LIBS)
    32 
    33 rpm_SOURCES = rpm.c
    34 rpm_LDADD = $(top_builddir)/librazor/librazor.la $(LUA_LIBS) $(EXTRA_LIBS)
    35 
    36 test_driver_SOURCES = test-driver.c
    37 test_driver_LDADD = $(top_builddir)/librazor/librazor.la $(EXPAT_LIBS) $(EXTRA_LIBS)
    38 
    39 TESTS = test-driver
    40 XFAIL_TESTS = test-driver
    41 
    42 EXTRA_DIST = 			\
    43 	test.xml
    44 
    45 clean-local :
    46 	rm -f *~
    47