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 | f712ebc | 2011-12-22 03:39:11 -0200 | [diff] [blame] | 105 | tools_kmod_SOURCES = tools/kmod.c tools/kmod.h tools/kmod-lsmod.c \ |
Lucas De Marchi | 769becb | 2011-12-22 03:50:54 -0200 | [diff] [blame] | 106 | tools/kmod-rmmod.c tools/kmod-insmod.c \ |
Lucas De Marchi | f6cf14c | 2011-12-27 19:56:33 -0200 | [diff] [blame] | 107 | tools/kmod-modinfo.c tools/kmod-modprobe.c \ |
| 108 | tools/kmod-depmod.c |
Lucas De Marchi | 6fcf69e | 2011-12-22 03:01:45 -0200 | [diff] [blame] | 109 | tools_kmod_CPPFLAGS = $(AM_CPPFLAGS) -DKMOD_BUNDLE_TOOL=1 |
Lucas De Marchi | f6cf14c | 2011-12-27 19:56:33 -0200 | [diff] [blame] | 110 | tools_kmod_CFLAGS = $(AM_CFLAGS) |
| 111 | tools_kmod_LDADD = libkmod/libkmod-util.la \ |
| 112 | libkmod/libkmod.la |
Lucas De Marchi | 00fc926 | 2012-01-10 11:15:19 -0200 | [diff] [blame] | 113 | |
Lucas De Marchi | fe8b067 | 2012-01-21 15:38:25 -0200 | [diff] [blame] | 114 | noinst_PROGRAMS = tools/kmod-nolib |
Lucas De Marchi | 0b22179 | 2012-01-10 14:06:24 -0200 | [diff] [blame] | 115 | tools_kmod_nolib_SOURCES = $(tools_kmod_SOURCES) |
| 116 | tools_kmod_nolib_CPPFLAGS = $(tools_kmod_CPPFLAGS) |
| 117 | tools_kmod_nolib_CFLAGS = $(tools_kmod_CFLAGS) |
| 118 | tools_kmod_nolib_LDADD = libkmod/libkmod-util.la \ |
| 119 | libkmod/libkmod-private.la |
| 120 | |
| 121 | ${noinst_SCRIPTS}: tools/kmod-nolib |
Lucas De Marchi | 00fc926 | 2012-01-10 11:15:19 -0200 | [diff] [blame] | 122 | $(AM_V_GEN) ($(RM) $@; \ |
| 123 | $(LN_S) $(notdir $<) $@) |
Gustavo Sverzut Barbieri | 72c51a9 | 2011-12-10 22:19:41 -0200 | [diff] [blame] | 124 | endif |
| 125 | |
Lucas De Marchi | 6afc9cd | 2012-01-25 02:44:45 -0200 | [diff] [blame] | 126 | # ------------------------------------------------------------------------------ |
| 127 | # TESTSUITE |
| 128 | # ------------------------------------------------------------------------------ |
| 129 | |
Lucas De Marchi | 452c1dd | 2012-05-11 00:04:59 -0300 | [diff] [blame^] | 130 | testsuite/rootfs-dirty: $(top_srcdir)/testsuite/rootfs |
| 131 | $(AM_V_GEN) cp -r $< $@ |
| 132 | |
Lucas De Marchi | d2c2b8b | 2012-01-26 12:18:23 -0200 | [diff] [blame] | 133 | TESTSUITE_OVERRIDE_LIBS = testsuite/uname.la testsuite/path.la \ |
Lucas De Marchi | f6ef5d6 | 2012-01-26 16:10:41 -0200 | [diff] [blame] | 134 | testsuite/init_module.la \ |
| 135 | testsuite/delete_module.la |
Lucas De Marchi | d2c2b8b | 2012-01-26 12:18:23 -0200 | [diff] [blame] | 136 | TESTSUITE_OVERRIDE_LIBS_LDFLAGS = avoid-version -module -shared -export-dynamic \ |
| 137 | -rpath /nowhere -ldl |
Lucas De Marchi | 68cc449 | 2012-01-24 22:04:46 -0200 | [diff] [blame] | 138 | |
Lucas De Marchi | d2c2b8b | 2012-01-26 12:18:23 -0200 | [diff] [blame] | 139 | check_LTLIBRARIES = $(TESTSUITE_OVERRIDE_LIBS) |
Lucas De Marchi | 68cc449 | 2012-01-24 22:04:46 -0200 | [diff] [blame] | 140 | |
Lucas De Marchi | d2c2b8b | 2012-01-26 12:18:23 -0200 | [diff] [blame] | 141 | testsuite_uname_la_LDFLAGS = $(TESTSUITE_OVERRIDE_LIBS_LDFLAGS) |
| 142 | testsuite_path_la_LDFLAGS = $(TESTSUITE_OVERRIDE_LIBS_LDFLAGS) |
Lucas De Marchi | 6afc9cd | 2012-01-25 02:44:45 -0200 | [diff] [blame] | 143 | |
Lucas De Marchi | f6ef5d6 | 2012-01-26 16:10:41 -0200 | [diff] [blame] | 144 | testsuite_delete_module_la_LDFLAGS = $(TESTSUITE_OVERRIDE_LIBS_LDFLAGS) |
Lucas De Marchi | d2c2b8b | 2012-01-26 12:18:23 -0200 | [diff] [blame] | 145 | testsuite_init_module_la_LDFLAGS = $(TESTSUITE_OVERRIDE_LIBS_LDFLAGS) |
| 146 | testsuite_init_module_la_SOURCES = testsuite/init_module.c \ |
Lucas De Marchi | d48b8a7 | 2012-01-29 16:09:59 -0200 | [diff] [blame] | 147 | testsuite/stripped-module.h |
Lucas De Marchi | d2c2b8b | 2012-01-26 12:18:23 -0200 | [diff] [blame] | 148 | testsuite_init_module_la_LIBADD = libkmod/libkmod-private.la |
Lucas De Marchi | 6afc9cd | 2012-01-25 02:44:45 -0200 | [diff] [blame] | 149 | |
Lucas De Marchi | 6b88ef3 | 2012-01-25 15:13:45 -0200 | [diff] [blame] | 150 | TESTSUITE_CPPFLAGS = $(AM_CPPFLAGS) \ |
Lucas De Marchi | 452c1dd | 2012-05-11 00:04:59 -0300 | [diff] [blame^] | 151 | -DTESTSUITE_ROOTFS=\"$(abs_top_builddir)/testsuite/rootfs-dirty/\" \ |
Lucas De Marchi | 6b88ef3 | 2012-01-25 15:13:45 -0200 | [diff] [blame] | 152 | -DABS_TOP_BUILDDIR=\"$(abs_top_builddir)\" |
Dan McGee | d35e883 | 2012-02-03 20:29:09 -0600 | [diff] [blame] | 153 | TESTSUITE_LDADD = testsuite/libtestsuite.la libkmod/libkmod-private.la |
Lucas De Marchi | 6b88ef3 | 2012-01-25 15:13:45 -0200 | [diff] [blame] | 154 | |
Lucas De Marchi | d2c2b8b | 2012-01-26 12:18:23 -0200 | [diff] [blame] | 155 | check_LTLIBRARIES += testsuite/libtestsuite.la |
Lucas De Marchi | 80f9e02 | 2012-01-24 20:59:54 -0200 | [diff] [blame] | 156 | testsuite_libtestsuite_la_SOURCES = testsuite/testsuite.c \ |
| 157 | testsuite/testsuite.h |
Lucas De Marchi | 452c1dd | 2012-05-11 00:04:59 -0300 | [diff] [blame^] | 158 | testsuite_libtestsuite_la_DEPENDENCIES = testsuite/rootfs-dirty \ |
Dan McGee | d35e883 | 2012-02-03 20:29:09 -0600 | [diff] [blame] | 159 | $(TESTSUITE_OVERRIDE_LIBS) |
Lucas De Marchi | 6b88ef3 | 2012-01-25 15:13:45 -0200 | [diff] [blame] | 160 | testsuite_libtestsuite_la_CPPFLAGS = $(TESTSUITE_CPPFLAGS) |
Lucas De Marchi | 646b83b | 2012-01-09 04:20:55 -0200 | [diff] [blame] | 161 | |
Lucas De Marchi | 95daea0 | 2012-01-25 20:32:48 -0200 | [diff] [blame] | 162 | TESTSUITE = testsuite/test-init testsuite/test-testsuite testsuite/test-loaded \ |
Lucas De Marchi | 976ea8c | 2012-02-08 01:40:00 -0200 | [diff] [blame] | 163 | testsuite/test-modinfo testsuite/test-alias testsuite/test-new-module \ |
| 164 | testsuite/test-modprobe |
Lucas De Marchi | eebca81 | 2012-01-24 21:53:27 -0200 | [diff] [blame] | 165 | check_PROGRAMS = $(TESTSUITE) |
| 166 | TESTS = $(TESTSUITE) |
| 167 | |
Lucas De Marchi | ab25311 | 2012-01-24 23:35:18 -0200 | [diff] [blame] | 168 | testsuite_test_testsuite_LDADD = testsuite/libtestsuite.la |
Lucas De Marchi | 6b88ef3 | 2012-01-25 15:13:45 -0200 | [diff] [blame] | 169 | testsuite_test_testsuite_CPPFLAGS = $(TESTSUITE_CPPFLAGS) |
Dan McGee | d35e883 | 2012-02-03 20:29:09 -0600 | [diff] [blame] | 170 | testsuite_test_init_LDADD = $(TESTSUITE_LDADD) |
| 171 | testsuite_test_init_CPPFLAGS = $(TESTSUITE_CPPFLAGS) |
| 172 | testsuite_test_loaded_LDADD = $(TESTSUITE_LDADD) |
Lucas De Marchi | 61e9433 | 2012-01-25 18:16:45 -0200 | [diff] [blame] | 173 | testsuite_test_loaded_CPPFLAGS = $(TESTSUITE_CPPFLAGS) |
Dan McGee | d35e883 | 2012-02-03 20:29:09 -0600 | [diff] [blame] | 174 | testsuite_test_modinfo_LDADD = $(TESTSUITE_LDADD) |
Lucas De Marchi | 95daea0 | 2012-01-25 20:32:48 -0200 | [diff] [blame] | 175 | testsuite_test_modinfo_CPPFLAGS = $(TESTSUITE_CPPFLAGS) |
Dan McGee | d35e883 | 2012-02-03 20:29:09 -0600 | [diff] [blame] | 176 | testsuite_test_alias_LDADD = $(TESTSUITE_LDADD) |
Pedro Pedruzzi | 760b896 | 2012-01-28 03:22:47 -0200 | [diff] [blame] | 177 | testsuite_test_alias_CPPFLAGS = $(TESTSUITE_CPPFLAGS) |
Dan McGee | d35e883 | 2012-02-03 20:29:09 -0600 | [diff] [blame] | 178 | testsuite_test_new_module_LDADD = $(TESTSUITE_LDADD) |
Lucas De Marchi | a947430 | 2012-01-29 15:43:19 -0200 | [diff] [blame] | 179 | testsuite_test_new_module_CPPFLAGS = $(TESTSUITE_CPPFLAGS) |
Lucas De Marchi | 976ea8c | 2012-02-08 01:40:00 -0200 | [diff] [blame] | 180 | testsuite_test_modprobe_LDADD = $(TESTSUITE_LDADD) |
| 181 | testsuite_test_modprobe_CPPFLAGS = $(TESTSUITE_CPPFLAGS) |
Lucas De Marchi | eebca81 | 2012-01-24 21:53:27 -0200 | [diff] [blame] | 182 | |
Lucas De Marchi | 452c1dd | 2012-05-11 00:04:59 -0300 | [diff] [blame^] | 183 | testsuite-distclean: |
| 184 | -find testsuite/rootfs-dirty -type d -exec chmod +w {} \; |
| 185 | -$(RM) -rf testsuite/rootfs-dirty |
| 186 | |
| 187 | DISTCLEAN_LOCAL_HOOKS += testsuite-distclean |
Lucas De Marchi | 9c41596 | 2012-05-10 23:42:41 -0300 | [diff] [blame] | 188 | EXTRA_DIST += testsuite/rootfs |
| 189 | |
Lucas De Marchi | 646b83b | 2012-01-09 04:20:55 -0200 | [diff] [blame] | 190 | DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc |
Lucas De Marchi | f4647b6 | 2012-01-16 00:42:28 -0200 | [diff] [blame] | 191 | |
Lucas De Marchi | 6afc9cd | 2012-01-25 02:44:45 -0200 | [diff] [blame] | 192 | distclean-local: $(DISTCLEAN_LOCAL_HOOKS) |
Lucas De Marchi | f4647b6 | 2012-01-16 00:42:28 -0200 | [diff] [blame] | 193 | |
| 194 | # ------------------------------------------------------------------------------ |
| 195 | # custom release helpers |
| 196 | # ------------------------------------------------------------------------------ |
| 197 | |
| 198 | git-release: |
| 199 | head -1 NEWS | grep -q "kmod $(VERSION)" |
| 200 | git commit -a -m "kmod $(VERSION)" |
| 201 | git tag -m "kmod $(VERSION)" -s v$(VERSION) |
| 202 | git gc --prune=0 |
| 203 | |
| 204 | kmod-$(VERSION).tar.xz: |
| 205 | make distcheck |
| 206 | |
| 207 | kmod-$(VERSION).tar.sign: |
| 208 | xz -d -c kmod-$(VERSION).tar.xz | gpg --armor --detach-sign --output kmod-$(VERSION).tar.sign |
| 209 | |
| 210 | tar: kmod-$(VERSION).tar.xz kmod-$(VERSION).tar.sign |
| 211 | |
| 212 | tar-sync: kmod-$(VERSION).tar.xz kmod-$(VERSION).tar.sign |
Lucas De Marchi | bb05bc8 | 2012-02-24 01:58:20 -0200 | [diff] [blame] | 213 | kup put kmod-$(VERSION).tar.xz kmod-$(VERSION).tar.sign /pub/linux/utils/kernel/kmod/ |