forked from mrunalp/hooks
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Makefile.am
33 lines (25 loc) · 1.03 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
libexec_PROGRAMS = oci-systemd-hook
oci_systemd_hook_SOURCES= src/systemdhook.c
oci_systemd_hook_CFLAGS = -Wall -Wextra -std=c99 $(YAJL_CFLAGS)
oci_systemd_hook_LDADD = $(YAJL_LIBS)
oci_systemd_hook_CFLAGS += $(SELINUX_CFLAGS)
oci_systemd_hook_LDADD += $(SELINUX_LIBS)
oci_systemd_hook_CFLAGS += $(LIBMOUNT_CFLAGS)
oci_systemd_hook_LDADD += $(LIBMOUNT_LIBS)
oci_systemd_hook_json_DATA = oci-systemd-hook.json
oci_systemd_hook_jsondir=/usr/share/containers/oci/hooks.d
dist_man_MANS = oci-systemd-hook.1
EXTRA_DIST = README.md LICENSE
oci-systemd-hook.1: doc/oci-systemd-hook.1.md
go-md2man -in doc/oci-systemd-hook.1.md -out oci-systemd-hook.1
distrib: oci-systemd-hook.spec
spectool -g oci-systemd-hook.spec
rpm: distrib
rpmbuild --define "_sourcedir `pwd`" --define "_specdir `pwd`" \
--define "_rpmdir `pwd`" --define "_srcrpmdir `pwd`" -ba oci-systemd-hook.spec
install-data-local:
$(MKDIR_P) $(DESTDIR)$(oci_systemd_hook_jsondir)
clean-local:
-rm -f oci-systemd-hook.1 *~
-rm -f oci-systemd-hook-*.tar.gz
-rm -f oci-systemd-hook-*.rpm