5 exec_prefix = @
exec_prefix@
8 libexecdir
= @libexecdir@
11 datarootdir
= @datarootdir@
18 PACKAGE_VERSION
= @PACKAGE_VERSION@
19 PACKAGE_BUGREPORT
= @PACKAGE_BUGREPORT@
21 perl_primary
= ksplice-create ksplice-view ksplice-apply ksplice-undo ksplice.pm ksplice.pl
22 perl_man
= $(patsubst %,%.8,$(perl_primary
))
24 have_static
:= $(wildcard $(srcdir)/objmanip-static
)
26 default
: $(perl_primary
) $(perl_man
) objutils
27 @echo
"Ready for 'make install'"
29 ifeq ($(strip $(have_static
)),)
31 objutils
: objdiff objmanip
33 install-objdiff install-objmanip
: install-
%: %
34 install -m755
-D
$< $(DESTDIR
)$(libexecdir
)/ksplice-
$*
40 install-objdiff install-objmanip
: install-
%: %-static
41 install -m755
-D
$< $(DESTDIR
)$(libexecdir
)/ksplice-
$*
45 $(perl_primary
): %: %.in Makefile
46 sed
's|PACKAGE_VERSION|$(PACKAGE_VERSION)|;s|PACKAGE_BUGREPORT|$(PACKAGE_BUGREPORT)|;s|KSPLICE_DATA_DIR|$(datadir)/ksplice|;s|KSPLICE_LIBEXEC_DIR|$(libexecdir)|' $< > $@
49 pod2man
--center
="Ksplice" --release
="Ksplice v$(PACKAGE_VERSION)" --section
=8 $< $@
51 objdiff objmanip
: %: %.c objcommon.c objcommon.h
52 $(CC
) $(CPPFLAGS
) $(CFLAGS
) $(LDFLAGS
) $< $(srcdir)/objcommon.c
$(LIBS
) -o
$@
54 install: default install-objmanip install-objdiff
55 install -m644
-D ksplice-create
.8 $(DESTDIR
)$(mandir)/man8
/ksplice-create
.8
56 install -m644
-D ksplice-apply
.8 $(DESTDIR
)$(mandir)/man8
/ksplice-apply
.8
57 install -m644
-D ksplice-undo
.8 $(DESTDIR
)$(mandir)/man8
/ksplice-undo
.8
58 install -m644
-D ksplice-view
.8 $(DESTDIR
)$(mandir)/man8
/ksplice-view
.8
59 install -m755
-D ksplice-create
$(DESTDIR
)$(bindir)/ksplice-create
60 install -m755
-D ksplice-view
$(DESTDIR
)$(bindir)/ksplice-view
61 install -m755
-D ksplice-apply
$(DESTDIR
)$(sbindir
)/ksplice-apply
62 install -m755
-D ksplice-undo
$(DESTDIR
)$(sbindir
)/ksplice-undo
63 install -m755
-D
$(srcdir)/gendiff-reversed
$(DESTDIR
)$(libexecdir
)/ksplice-gendiff-reversed
64 install -m755
-D
$(srcdir)/Makefile.ksplice
$(DESTDIR
)$(datadir)/ksplice
/Makefile.ksplice
65 install -m755
-D
$(srcdir)/ksplice.pl
$(DESTDIR
)$(datadir)/ksplice
/ksplice.pl
66 install -m644
-D ksplice.pm
$(DESTDIR
)$(datadir)/ksplice
/ksplice.pm
67 install -m644
-D
$(srcdir)/kmodsrc
/ksplice.c
$(DESTDIR
)$(datadir)/ksplice
/kmodsrc
/ksplice.c
68 install -m644
-D
$(srcdir)/kmodsrc
/ksplice.h
$(DESTDIR
)$(datadir)/ksplice
/kmodsrc
/ksplice.h
69 install -m644
-D
$(srcdir)/kmodsrc
/ksplice-run-pre.h
$(DESTDIR
)$(datadir)/ksplice
/kmodsrc
/ksplice-run-pre.h
70 install -m644
-D
$(srcdir)/kmodsrc
/helper.c
$(DESTDIR
)$(datadir)/ksplice
/kmodsrc
/helper.c
71 install -m644
-D
$(srcdir)/kmodsrc
/primary.c
$(DESTDIR
)$(datadir)/ksplice
/kmodsrc
/primary.c
72 install -m644
-D
$(srcdir)/kmodsrc
/Makefile
$(DESTDIR
)$(datadir)/ksplice
/kmodsrc
/Makefile
73 install -m644
-D
$(srcdir)/kmodsrc
/ld-script
$(DESTDIR
)$(datadir)/ksplice
/kmodsrc
/ld-script
78 rm -f objdiff objmanip allcommon-user.o
82 rm -f objdiff-static objmanip-static
83 rm -f configure config.status config.log