mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Now that we have a utility library for file locking, remove all calls to liblockfile functions from libap and remove all links to the library from the current users of the libap liblockfile implementation (ap_tools/ap-check and zdev). Fixes: https://github.com/ibm-s390-linux/s390-tools/issues/142 Suggested-by: Luca BRUNO <luca.bruno@coreos.com> Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com> Reviewed-by: Steffen Eiden <seiden@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
41 lines
940 B
Makefile
41 lines
940 B
Makefile
include ../common.mak
|
|
|
|
MDEVCTL_DIR = /etc/mdevctl.d/
|
|
MDEVCTL_SCRIPTS = /etc/mdevctl.d/scripts.d/
|
|
MDEVCTL_CALLOUTS = /etc/mdevctl.d/scripts.d/callouts/
|
|
|
|
libs = $(rootdir)/libap/libap.a \
|
|
$(rootdir)/libutil/libutil.a
|
|
|
|
ifeq (${HAVE_JSONC},0)
|
|
all:
|
|
$(SKIP) HAVE_JSONC=0
|
|
|
|
install:
|
|
$(SKIP) HAVE_JSONC=0
|
|
else
|
|
LDLIBS += -ljson-c
|
|
|
|
all: ap-check
|
|
|
|
ap-check: ap-check.o $(libs)
|
|
|
|
install: all
|
|
@if [ ! -d $(DESTDIR)$(MDEVCTL_CALLOUTS) ]; then \
|
|
mkdir -p $(DESTDIR)$(MDEVCTL_CALLOUTS); \
|
|
chown $(OWNER).$(GROUP) $(DESTDIR)$(MDEVCTL_DIR); \
|
|
chown $(OWNER).$(GROUP) $(DESTDIR)$(MDEVCTL_SCRIPTS); \
|
|
chown $(OWNER).$(GROUP) $(DESTDIR)$(MDEVCTL_CALLOUTS); \
|
|
chmod 755 $(DESTDIR)$(MDEVCTL_DIR); \
|
|
chmod 755 $(DESTDIR)$(MDEVCTL_SCRIPTS); \
|
|
chmod 755 $(DESTDIR)$(MDEVCTL_CALLOUTS); \
|
|
fi; \
|
|
$(INSTALL) -g $(GROUP) -o $(OWNER) -m 755 ap-check \
|
|
$(DESTDIR)$(MDEVCTL_CALLOUTS)
|
|
endif
|
|
|
|
clean:
|
|
rm -f *.o *~ ap-check core
|
|
|
|
.PHONY: all install clean
|