Lucas De Marchi | 904b57d | 2012-01-12 11:48:21 -0200 | [diff] [blame] | 1 | SUBDIRS = . libkmod/docs man |
Lucas De Marchi | 646b83b | 2012-01-09 04:20:55 -0200 | [diff] [blame] | 2 | |
Lucas De Marchi | 6afc9cd | 2012-01-25 02:44:45 -0200 | [diff] [blame] | 3 | DISTCLEAN_LOCAL_HOOKS = |
Lucas De Marchi | 85ece20 | 2011-12-02 17:53:54 -0200 | [diff] [blame] | 4 | EXTRA_DIST = |
| 5 | CLEANFILES = |
Lucas De Marchi | ecd40ee | 2011-11-21 12:35:15 -0200 | [diff] [blame] | 6 | ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} |
| 7 | AM_MAKEFLAGS = --no-print-directory |
| 8 | |
| 9 | AM_CPPFLAGS = \ |
| 10 | -include $(top_builddir)/config.h \ |
Lucas De Marchi | 586fc30 | 2011-11-21 14:35:35 -0200 | [diff] [blame] | 11 | -I$(top_srcdir)/libkmod \ |
Kay Sievers | a308abe | 2011-12-20 17:58:05 +0100 | [diff] [blame] | 12 | -DROOTPREFIX=\""$(rootprefix)"\" \ |
Lucas De Marchi | ecd40ee | 2011-11-21 12:35:15 -0200 | [diff] [blame] | 13 | -DSYSCONFDIR=\""$(sysconfdir)"\" \ |
Jan Engelhardt | 7b3a74f | 2011-12-24 04:45:22 +0100 | [diff] [blame] | 14 | -DLIBEXECDIR=\""$(libexecdir)"\" \ |
| 15 | ${zlib_CFLAGS} |
Lucas De Marchi | ecd40ee | 2011-11-21 12:35:15 -0200 | [diff] [blame] | 16 | |
Lucas De Marchi | e48f376 | 2012-03-17 15:12:44 -0300 | [diff] [blame] | 17 | AM_CFLAGS = $(WARNINGFLAGS) |
| 18 | AM_LDFLAGS = $(GCLDFLAGS) |
Lucas De Marchi | ecd40ee | 2011-11-21 12:35:15 -0200 | [diff] [blame] | 19 | |
Kay Sievers | 9faa7b3 | 2011-12-21 11:48:07 -0200 | [diff] [blame] | 20 | SED_PROCESS = \ |
| 21 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(SED) \ |
| 22 | -e 's,@VERSION\@,$(VERSION),g' \ |
| 23 | -e 's,@prefix\@,$(prefix),g' \ |
| 24 | -e 's,@exec_prefix\@,$(exec_prefix),g' \ |
| 25 | -e 's,@libdir\@,$(libdir),g' \ |
| 26 | -e 's,@includedir\@,$(includedir),g' \ |
Jan Engelhardt | b182f8f | 2011-12-24 14:58:30 +0100 | [diff] [blame] | 27 | -e 's,@liblzma_CFLAGS\@,${liblzma_CFLAGS},g' \ |
| 28 | -e 's,@liblzma_LIBS\@,${liblzma_LIBS},g' \ |
Jan Engelhardt | 7b3a74f | 2011-12-24 04:45:22 +0100 | [diff] [blame] | 29 | -e 's,@zlib_CFLAGS\@,${zlib_CFLAGS},g' \ |
| 30 | -e 's,@zlib_LIBS\@,${zlib_LIBS},g' \ |
Kay Sievers | 9faa7b3 | 2011-12-21 11:48:07 -0200 | [diff] [blame] | 31 | < $< > $@ || rm $@ |
| 32 | |
| 33 | %.pc: %.pc.in Makefile |
| 34 | $(SED_PROCESS) |
| 35 | |
Lucas De Marchi | 26906fe | 2012-03-02 22:34:36 -0300 | [diff] [blame] | 36 | LIBKMOD_CURRENT=3 |
Lucas De Marchi | 46684bc | 2012-04-19 11:21:00 -0300 | [diff] [blame] | 37 | LIBKMOD_REVISION=2 |
Lucas De Marchi | 26906fe | 2012-03-02 22:34:36 -0300 | [diff] [blame] | 38 | LIBKMOD_AGE=1 |
Lucas De Marchi | ecd40ee | 2011-11-21 12:35:15 -0200 | [diff] [blame] | 39 | |
Lucas De Marchi | 529148e | 2011-12-27 12:26:51 -0200 | [diff] [blame] | 40 | noinst_LTLIBRARIES = libkmod/libkmod-util.la |
| 41 | libkmod_libkmod_util_la_SOURCES = libkmod/libkmod-hash.c \ |
Lucas De Marchi | 6670c63 | 2011-12-28 12:53:37 -0200 | [diff] [blame] | 42 | libkmod/libkmod-hash.h \ |
| 43 | libkmod/libkmod-array.c \ |
Lucas De Marchi | 0c010fa | 2011-12-28 13:33:26 -0200 | [diff] [blame] | 44 | libkmod/libkmod-array.h \ |
| 45 | libkmod/libkmod-util.c \ |
| 46 | libkmod/libkmod-util.h |
Lucas De Marchi | 529148e | 2011-12-27 12:26:51 -0200 | [diff] [blame] | 47 | |
Lucas De Marchi | 586fc30 | 2011-11-21 14:35:35 -0200 | [diff] [blame] | 48 | include_HEADERS = libkmod/libkmod.h |
| 49 | lib_LTLIBRARIES = libkmod/libkmod.la |
Lucas De Marchi | ecd40ee | 2011-11-21 12:35:15 -0200 | [diff] [blame] | 50 | |
Lucas De Marchi | 586fc30 | 2011-11-21 14:35:35 -0200 | [diff] [blame] | 51 | libkmod_libkmod_la_SOURCES =\ |
| 52 | libkmod/libkmod.h \ |
| 53 | libkmod/libkmod-private.h \ |
Lucas De Marchi | 88e9c12 | 2011-11-23 12:23:46 -0200 | [diff] [blame] | 54 | libkmod/macro.h \ |
Lucas De Marchi | 6924e47 | 2011-11-22 05:38:28 -0200 | [diff] [blame] | 55 | libkmod/libkmod.c \ |
Lucas De Marchi | 5369797 | 2011-11-22 05:42:09 -0200 | [diff] [blame] | 56 | libkmod/libkmod-list.c \ |
Lucas De Marchi | 7c2ab35 | 2011-11-29 18:07:43 -0200 | [diff] [blame] | 57 | libkmod/libkmod-config.c \ |
Lucas De Marchi | e8847fd | 2011-11-30 15:23:28 -0200 | [diff] [blame] | 58 | libkmod/libkmod-index.c \ |
| 59 | libkmod/libkmod-index.h \ |
Gustavo Sverzut Barbieri | 3d8226e | 2011-12-16 16:08:53 -0200 | [diff] [blame] | 60 | libkmod/libkmod-module.c \ |
Gustavo Sverzut Barbieri | 708624a | 2011-12-18 01:25:06 -0200 | [diff] [blame] | 61 | libkmod/libkmod-file.c \ |
| 62 | libkmod/libkmod-elf.c |
Lucas De Marchi | ecd40ee | 2011-11-21 12:35:15 -0200 | [diff] [blame] | 63 | |
Lucas De Marchi | 586fc30 | 2011-11-21 14:35:35 -0200 | [diff] [blame] | 64 | EXTRA_DIST += libkmod/libkmod.sym |
Lucas De Marchi | e269a84 | 2011-12-15 15:37:41 -0200 | [diff] [blame] | 65 | EXTRA_DIST += libkmod/COPYING libkmod/README |
Lucas De Marchi | ecd40ee | 2011-11-21 12:35:15 -0200 | [diff] [blame] | 66 | |
Lucas De Marchi | 586fc30 | 2011-11-21 14:35:35 -0200 | [diff] [blame] | 67 | libkmod_libkmod_la_LDFLAGS = $(AM_LDFLAGS) \ |
| 68 | -version-info $(LIBKMOD_CURRENT):$(LIBKMOD_REVISION):$(LIBKMOD_AGE) \ |
| 69 | -Wl,--version-script=$(top_srcdir)/libkmod/libkmod.sym |
Lucas De Marchi | 529148e | 2011-12-27 12:26:51 -0200 | [diff] [blame] | 70 | libkmod_libkmod_la_DEPENDENCIES = libkmod/libkmod-util.la \ |
| 71 | ${top_srcdir}/libkmod/libkmod.sym |
| 72 | libkmod_libkmod_la_LIBADD = libkmod/libkmod-util.la \ |
| 73 | ${liblzma_LIBS} ${zlib_LIBS} |
Lucas De Marchi | ecd40ee | 2011-11-21 12:35:15 -0200 | [diff] [blame] | 74 | |
Lucas De Marchi | 39baaec | 2012-01-10 16:22:59 -0200 | [diff] [blame] | 75 | noinst_LTLIBRARIES += libkmod/libkmod-private.la |
| 76 | libkmod_libkmod_private_la_SOURCES = $(libkmod_libkmod_la_SOURCES) |
| 77 | libkmod_libkmod_private_la_LDFLAGS = $(AM_LDFLAGS) \ |
| 78 | -Wl,--version-script=$(top_srcdir)/libkmod/libkmod.sym |
| 79 | libkmod_libkmod_private_la_DEPENDENCIES = $(libkmod_libkmod_la_DEPENDENCIES) |
| 80 | libkmod_libkmod_private_la_LIBADD = $(libkmod_libkmod_la_LIBADD) |
| 81 | |
Lucas De Marchi | ecd40ee | 2011-11-21 12:35:15 -0200 | [diff] [blame] | 82 | pkgconfigdir = $(libdir)/pkgconfig |
Lucas De Marchi | 586fc30 | 2011-11-21 14:35:35 -0200 | [diff] [blame] | 83 | pkgconfig_DATA = libkmod/libkmod.pc |
Kay Sievers | 9faa7b3 | 2011-12-21 11:48:07 -0200 | [diff] [blame] | 84 | EXTRA_DIST += libkmod/libkmod.pc.in |
| 85 | CLEANFILES += libkmod/libkmod.pc |
Lucas De Marchi | ecd40ee | 2011-11-21 12:35:15 -0200 | [diff] [blame] | 86 | |
Kay Sievers | e79bf83 | 2011-12-22 15:40:24 +0100 | [diff] [blame] | 87 | install-exec-hook: |
| 88 | if test "$(libdir)" != "$(rootlibdir)"; then \ |
Lucas De Marchi | 6a4fa8d | 2011-12-23 01:59:31 -0200 | [diff] [blame] | 89 | $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \ |
Kay Sievers | e79bf83 | 2011-12-22 15:40:24 +0100 | [diff] [blame] | 90 | so_img_name=$$(readlink $(DESTDIR)$(libdir)/libkmod.so) && \ |
| 91 | so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \ |
| 92 | ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libkmod.so && \ |
| 93 | mv $(DESTDIR)$(libdir)/libkmod.so.* $(DESTDIR)$(rootlibdir); \ |
| 94 | fi |
| 95 | |
| 96 | uninstall-hook: |
| 97 | rm -f $(DESTDIR)$(rootlibdir)/libkmod.so* |
| 98 | |
Gustavo Sverzut Barbieri | 72c51a9 | 2011-12-10 22:19:41 -0200 | [diff] [blame] | 99 | if BUILD_TOOLS |
Lucas De Marchi | 8d75053 | 2012-01-04 08:58:19 -0200 | [diff] [blame] | 100 | bin_PROGRAMS = tools/kmod |
| 101 | |
Lucas De Marchi | 00fc926 | 2012-01-10 11:15:19 -0200 | [diff] [blame] | 102 | noinst_SCRIPTS = tools/insmod tools/rmmod tools/lsmod \ |
| 103 | tools/modprobe tools/modinfo tools/depmod |
Lucas De Marchi | 8900b91 | 2011-12-22 02:33:36 -0200 | [diff] [blame] | 104 | |
Lucas De Marchi | ac78e10 | 2012-06-14 16:29:28 -0300 | [diff] [blame] | 105 | tools_kmod_SOURCES = tools/kmod.c tools/kmod.h tools/lsmod.c \ |
| 106 | tools/rmmod.c tools/insmod.c \ |
| 107 | tools/modinfo.c tools/modprobe.c \ |
| 108 | tools/depmod.c |
Lucas De Marchi | f6cf14c | 2011-12-27 19:56:33 -0200 | [diff] [blame] | 109 | tools_kmod_LDADD = libkmod/libkmod-util.la \ |
| 110 | libkmod/libkmod.la |
Lucas De Marchi | 00fc926 | 2012-01-10 11:15:19 -0200 | [diff] [blame] | 111 | |
Lucas De Marchi | fe8b067 | 2012-01-21 15:38:25 -0200 | [diff] [blame] | 112 | noinst_PROGRAMS = tools/kmod-nolib |
Lucas De Marchi | 0b22179 | 2012-01-10 14:06:24 -0200 | [diff] [blame] | 113 | tools_kmod_nolib_SOURCES = $(tools_kmod_SOURCES) |
Lucas De Marchi | 0b22179 | 2012-01-10 14:06:24 -0200 | [diff] [blame] | 114 | tools_kmod_nolib_LDADD = libkmod/libkmod-util.la \ |
| 115 | libkmod/libkmod-private.la |
| 116 | |
| 117 | ${noinst_SCRIPTS}: tools/kmod-nolib |
Lucas De Marchi | 00fc926 | 2012-01-10 11:15:19 -0200 | [diff] [blame] | 118 | $(AM_V_GEN) ($(RM) $@; \ |
| 119 | $(LN_S) $(notdir $<) $@) |
Gustavo Sverzut Barbieri | 72c51a9 | 2011-12-10 22:19:41 -0200 | [diff] [blame] | 120 | endif |
| 121 | |
Lucas De Marchi | 6afc9cd | 2012-01-25 02:44:45 -0200 | [diff] [blame] | 122 | # ------------------------------------------------------------------------------ |
| 123 | # TESTSUITE |
| 124 | # ------------------------------------------------------------------------------ |
| 125 | |
Lucas De Marchi | e2ee7d9 | 2012-05-23 23:04:44 -0300 | [diff] [blame] | 126 | ROOTFS = testsuite/rootfs |
Lucas De Marchi | 0de690c | 2012-05-24 01:31:36 -0300 | [diff] [blame] | 127 | ROOTFS_PRISTINE = $(top_srcdir)/testsuite/rootfs-pristine |
| 128 | CREATE_ROOTFS = $(AM_V_GEN) ( $(RM) -rf $(ROOTFS) && \ |
| 129 | cp -r $(ROOTFS_PRISTINE) $(ROOTFS) && \ |
Lucas De Marchi | 33202e8 | 2012-06-19 13:09:23 -0300 | [diff] [blame^] | 130 | touch testsuite/stamp-rootfs && \ |
| 131 | find $(ROOTFS) -type d -exec chmod +w {} \; ) |
Lucas De Marchi | e2ee7d9 | 2012-05-23 23:04:44 -0300 | [diff] [blame] | 132 | |
Lucas De Marchi | 0de690c | 2012-05-24 01:31:36 -0300 | [diff] [blame] | 133 | rootfs: |
| 134 | $(CREATE_ROOTFS) |
| 135 | |
| 136 | $(ROOTFS): $(ROOTFS_PRISTINE) |
| 137 | $(CREATE_ROOTFS) |
Lucas De Marchi | 452c1dd | 2012-05-11 00:04:59 -0300 | [diff] [blame] | 138 | |
Lucas De Marchi | d2c2b8b | 2012-01-26 12:18:23 -0200 | [diff] [blame] | 139 | TESTSUITE_OVERRIDE_LIBS = testsuite/uname.la testsuite/path.la \ |
Lucas De Marchi | f6ef5d6 | 2012-01-26 16:10:41 -0200 | [diff] [blame] | 140 | testsuite/init_module.la \ |
| 141 | testsuite/delete_module.la |
Lucas De Marchi | d2c2b8b | 2012-01-26 12:18:23 -0200 | [diff] [blame] | 142 | TESTSUITE_OVERRIDE_LIBS_LDFLAGS = avoid-version -module -shared -export-dynamic \ |
| 143 | -rpath /nowhere -ldl |
Lucas De Marchi | 68cc449 | 2012-01-24 22:04:46 -0200 | [diff] [blame] | 144 | |
Lucas De Marchi | d2c2b8b | 2012-01-26 12:18:23 -0200 | [diff] [blame] | 145 | check_LTLIBRARIES = $(TESTSUITE_OVERRIDE_LIBS) |
Lucas De Marchi | 68cc449 | 2012-01-24 22:04:46 -0200 | [diff] [blame] | 146 | |
Lucas De Marchi | d2c2b8b | 2012-01-26 12:18:23 -0200 | [diff] [blame] | 147 | testsuite_uname_la_LDFLAGS = $(TESTSUITE_OVERRIDE_LIBS_LDFLAGS) |
| 148 | testsuite_path_la_LDFLAGS = $(TESTSUITE_OVERRIDE_LIBS_LDFLAGS) |
Lucas De Marchi | 6afc9cd | 2012-01-25 02:44:45 -0200 | [diff] [blame] | 149 | |
Lucas De Marchi | f6ef5d6 | 2012-01-26 16:10:41 -0200 | [diff] [blame] | 150 | testsuite_delete_module_la_LDFLAGS = $(TESTSUITE_OVERRIDE_LIBS_LDFLAGS) |
Lucas De Marchi | d2c2b8b | 2012-01-26 12:18:23 -0200 | [diff] [blame] | 151 | testsuite_init_module_la_LDFLAGS = $(TESTSUITE_OVERRIDE_LIBS_LDFLAGS) |
| 152 | testsuite_init_module_la_SOURCES = testsuite/init_module.c \ |
Lucas De Marchi | fd0d806 | 2012-06-14 16:58:46 -0300 | [diff] [blame] | 153 | testsuite/mkdir.c testsuite/mkdir.h \ |
Lucas De Marchi | d48b8a7 | 2012-01-29 16:09:59 -0200 | [diff] [blame] | 154 | testsuite/stripped-module.h |
Lucas De Marchi | d2c2b8b | 2012-01-26 12:18:23 -0200 | [diff] [blame] | 155 | testsuite_init_module_la_LIBADD = libkmod/libkmod-private.la |
Lucas De Marchi | 6afc9cd | 2012-01-25 02:44:45 -0200 | [diff] [blame] | 156 | |
Lucas De Marchi | 6b88ef3 | 2012-01-25 15:13:45 -0200 | [diff] [blame] | 157 | TESTSUITE_CPPFLAGS = $(AM_CPPFLAGS) \ |
Lucas De Marchi | e2ee7d9 | 2012-05-23 23:04:44 -0300 | [diff] [blame] | 158 | -DTESTSUITE_ROOTFS=\"$(abs_top_builddir)/$(ROOTFS)/\" \ |
Lucas De Marchi | 6b88ef3 | 2012-01-25 15:13:45 -0200 | [diff] [blame] | 159 | -DABS_TOP_BUILDDIR=\"$(abs_top_builddir)\" |
Lucas De Marchi | 0de690c | 2012-05-24 01:31:36 -0300 | [diff] [blame] | 160 | TESTSUITE_LDADD = testsuite/libtestsuite.la libkmod/libkmod-private.la \ |
| 161 | libkmod/libkmod-util.la |
Lucas De Marchi | 6b88ef3 | 2012-01-25 15:13:45 -0200 | [diff] [blame] | 162 | |
Lucas De Marchi | d2c2b8b | 2012-01-26 12:18:23 -0200 | [diff] [blame] | 163 | check_LTLIBRARIES += testsuite/libtestsuite.la |
Lucas De Marchi | 80f9e02 | 2012-01-24 20:59:54 -0200 | [diff] [blame] | 164 | testsuite_libtestsuite_la_SOURCES = testsuite/testsuite.c \ |
| 165 | testsuite/testsuite.h |
Lucas De Marchi | e2ee7d9 | 2012-05-23 23:04:44 -0300 | [diff] [blame] | 166 | testsuite_libtestsuite_la_DEPENDENCIES = $(ROOTFS) \ |
| 167 | $(TESTSUITE_OVERRIDE_LIBS) |
Lucas De Marchi | 6b88ef3 | 2012-01-25 15:13:45 -0200 | [diff] [blame] | 168 | testsuite_libtestsuite_la_CPPFLAGS = $(TESTSUITE_CPPFLAGS) |
Lucas De Marchi | b8e344a | 2012-06-06 01:03:15 -0300 | [diff] [blame] | 169 | testsuite_libtestsuite_la_LIBADD = -lrt |
Lucas De Marchi | 646b83b | 2012-01-09 04:20:55 -0200 | [diff] [blame] | 170 | |
Lucas De Marchi | 95daea0 | 2012-01-25 20:32:48 -0200 | [diff] [blame] | 171 | TESTSUITE = testsuite/test-init testsuite/test-testsuite testsuite/test-loaded \ |
Lucas De Marchi | 976ea8c | 2012-02-08 01:40:00 -0200 | [diff] [blame] | 172 | testsuite/test-modinfo testsuite/test-alias testsuite/test-new-module \ |
Dan McGee | c88aec7 | 2012-02-22 23:56:59 -0600 | [diff] [blame] | 173 | testsuite/test-modprobe testsuite/test-blacklist testsuite/test-dependencies |
Lucas De Marchi | eebca81 | 2012-01-24 21:53:27 -0200 | [diff] [blame] | 174 | check_PROGRAMS = $(TESTSUITE) |
| 175 | TESTS = $(TESTSUITE) |
| 176 | |
Lucas De Marchi | 0de690c | 2012-05-24 01:31:36 -0300 | [diff] [blame] | 177 | testsuite_test_testsuite_LDADD = testsuite/libtestsuite.la libkmod/libkmod-util.la |
Lucas De Marchi | 6b88ef3 | 2012-01-25 15:13:45 -0200 | [diff] [blame] | 178 | testsuite_test_testsuite_CPPFLAGS = $(TESTSUITE_CPPFLAGS) |
Dan McGee | d35e883 | 2012-02-03 20:29:09 -0600 | [diff] [blame] | 179 | testsuite_test_init_LDADD = $(TESTSUITE_LDADD) |
| 180 | testsuite_test_init_CPPFLAGS = $(TESTSUITE_CPPFLAGS) |
| 181 | testsuite_test_loaded_LDADD = $(TESTSUITE_LDADD) |
Lucas De Marchi | 61e9433 | 2012-01-25 18:16:45 -0200 | [diff] [blame] | 182 | testsuite_test_loaded_CPPFLAGS = $(TESTSUITE_CPPFLAGS) |
Dan McGee | d35e883 | 2012-02-03 20:29:09 -0600 | [diff] [blame] | 183 | testsuite_test_modinfo_LDADD = $(TESTSUITE_LDADD) |
Lucas De Marchi | 95daea0 | 2012-01-25 20:32:48 -0200 | [diff] [blame] | 184 | testsuite_test_modinfo_CPPFLAGS = $(TESTSUITE_CPPFLAGS) |
Dan McGee | d35e883 | 2012-02-03 20:29:09 -0600 | [diff] [blame] | 185 | testsuite_test_alias_LDADD = $(TESTSUITE_LDADD) |
Pedro Pedruzzi | 760b896 | 2012-01-28 03:22:47 -0200 | [diff] [blame] | 186 | testsuite_test_alias_CPPFLAGS = $(TESTSUITE_CPPFLAGS) |
Dan McGee | d35e883 | 2012-02-03 20:29:09 -0600 | [diff] [blame] | 187 | testsuite_test_new_module_LDADD = $(TESTSUITE_LDADD) |
Lucas De Marchi | a947430 | 2012-01-29 15:43:19 -0200 | [diff] [blame] | 188 | testsuite_test_new_module_CPPFLAGS = $(TESTSUITE_CPPFLAGS) |
Lucas De Marchi | 976ea8c | 2012-02-08 01:40:00 -0200 | [diff] [blame] | 189 | testsuite_test_modprobe_LDADD = $(TESTSUITE_LDADD) |
| 190 | testsuite_test_modprobe_CPPFLAGS = $(TESTSUITE_CPPFLAGS) |
Dan McGee | bcca1b9 | 2012-02-22 23:56:58 -0600 | [diff] [blame] | 191 | testsuite_test_blacklist_LDADD = $(TESTSUITE_LDADD) |
| 192 | testsuite_test_blacklist_CPPFLAGS = $(TESTSUITE_CPPFLAGS) |
Dan McGee | c88aec7 | 2012-02-22 23:56:59 -0600 | [diff] [blame] | 193 | testsuite_test_dependencies_LDADD = $(TESTSUITE_LDADD) |
| 194 | testsuite_test_dependencies_CPPFLAGS = $(TESTSUITE_CPPFLAGS) |
Lucas De Marchi | eebca81 | 2012-01-24 21:53:27 -0200 | [diff] [blame] | 195 | |
Lucas De Marchi | 452c1dd | 2012-05-11 00:04:59 -0300 | [diff] [blame] | 196 | testsuite-distclean: |
Lucas De Marchi | e2ee7d9 | 2012-05-23 23:04:44 -0300 | [diff] [blame] | 197 | -$(RM) -rf $(ROOTFS) |
Lucas De Marchi | 0de690c | 2012-05-24 01:31:36 -0300 | [diff] [blame] | 198 | -$(RM) testsuite/stamp-rootfs |
Lucas De Marchi | 452c1dd | 2012-05-11 00:04:59 -0300 | [diff] [blame] | 199 | |
| 200 | DISTCLEAN_LOCAL_HOOKS += testsuite-distclean |
Lucas De Marchi | e2ee7d9 | 2012-05-23 23:04:44 -0300 | [diff] [blame] | 201 | EXTRA_DIST += testsuite/rootfs-pristine |
Lucas De Marchi | 9c41596 | 2012-05-10 23:42:41 -0300 | [diff] [blame] | 202 | |
Lucas De Marchi | 851ee75 | 2012-05-23 23:05:04 -0300 | [diff] [blame] | 203 | DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc --sysconfdir=/etc |
Lucas De Marchi | f4647b6 | 2012-01-16 00:42:28 -0200 | [diff] [blame] | 204 | |
Lucas De Marchi | 6afc9cd | 2012-01-25 02:44:45 -0200 | [diff] [blame] | 205 | distclean-local: $(DISTCLEAN_LOCAL_HOOKS) |
Lucas De Marchi | f4647b6 | 2012-01-16 00:42:28 -0200 | [diff] [blame] | 206 | |
| 207 | # ------------------------------------------------------------------------------ |
| 208 | # custom release helpers |
| 209 | # ------------------------------------------------------------------------------ |
| 210 | |
| 211 | git-release: |
| 212 | head -1 NEWS | grep -q "kmod $(VERSION)" |
| 213 | git commit -a -m "kmod $(VERSION)" |
| 214 | git tag -m "kmod $(VERSION)" -s v$(VERSION) |
| 215 | git gc --prune=0 |
| 216 | |
| 217 | kmod-$(VERSION).tar.xz: |
| 218 | make distcheck |
| 219 | |
| 220 | kmod-$(VERSION).tar.sign: |
| 221 | xz -d -c kmod-$(VERSION).tar.xz | gpg --armor --detach-sign --output kmod-$(VERSION).tar.sign |
| 222 | |
| 223 | tar: kmod-$(VERSION).tar.xz kmod-$(VERSION).tar.sign |
| 224 | |
| 225 | tar-sync: kmod-$(VERSION).tar.xz kmod-$(VERSION).tar.sign |
Lucas De Marchi | bb05bc8 | 2012-02-24 01:58:20 -0200 | [diff] [blame] | 226 | kup put kmod-$(VERSION).tar.xz kmod-$(VERSION).tar.sign /pub/linux/utils/kernel/kmod/ |