mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Since coreutils v9.1 commit 8f31074cb ("chown: warn about USER.GROUP")
chown utility now warns about using of wrong separator for USER and
GROUP options.
Closes: https://github.com/ibm-s390-linux/s390-tools/pull/145
Signed-off-by: Nikolay Gueorguiev <nikolay.gueorguiev@suse.com>
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
65 lines
1.4 KiB
Makefile
65 lines
1.4 KiB
Makefile
#!/usr/bin/make -f
|
|
|
|
include ../common.mak
|
|
|
|
ifeq (${HAVE_FUSE},0)
|
|
|
|
all:
|
|
$(SKIP) HAVE_FUSE=0
|
|
|
|
install:
|
|
$(SKIP) HAVE_FUSE=0
|
|
|
|
else
|
|
|
|
check_dep:
|
|
$(call check_dep, \
|
|
"hmcdrvfs", \
|
|
"fuse.h", \
|
|
"fuse3-devel or libfuse3-dev", \
|
|
"HAVE_FUSE=0")
|
|
|
|
ifneq ($(shell sh -c 'command -v pkg-config'),)
|
|
FUSE_CFLAGS = $(shell pkg-config --silence-errors --cflags fuse3)
|
|
FUSE_LDLIBS = $(shell pkg-config --silence-errors --libs fuse3)
|
|
else
|
|
FUSE_CFLAGS = -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse3
|
|
FUSE_LDLIBS = -lfuse3
|
|
endif
|
|
ALL_CFLAGS += -DFUSE_USE_VERSION=30 -D_LARGEFILE_SOURCE $(FUSE_CFLAGS)
|
|
LDLIBS += $(FUSE_LDLIBS) -lpthread -lrt -ldl -lm
|
|
|
|
OBJECTS = hmcdrvfs.o
|
|
|
|
libs = $(rootdir)/libutil/libutil.a
|
|
|
|
all: check_dep hmcdrvfs
|
|
|
|
$(OBJECTS): Makefile
|
|
|
|
hmcdrvfs: $(OBJECTS) $(libs)
|
|
|
|
install: all install-scripts
|
|
$(INSTALL) -g $(GROUP) -o $(OWNER) -m 755 hmcdrvfs \
|
|
$(DESTDIR)$(USRBINDIR)
|
|
$(INSTALL) -g $(GROUP) -o $(OWNER) -m 644 hmcdrvfs.1 \
|
|
$(DESTDIR)$(MANDIR)/man1
|
|
$(INSTALL) -g $(GROUP) -o $(OWNER) -m 644 lshmc.8 \
|
|
$(DESTDIR)$(MANDIR)/man8
|
|
|
|
install-scripts: lshmc
|
|
@for i in $^; do \
|
|
cat $$i | \
|
|
sed -e 's/%S390_TOOLS_VERSION%/$(S390_TOOLS_RELEASE)/' \
|
|
>$(DESTDIR)$(USRSBINDIR)/$$i; \
|
|
chown $(OWNER):$(GROUP) $(DESTDIR)$(USRSBINDIR)/$$i; \
|
|
chmod 755 $(DESTDIR)$(USRSBINDIR)/$$i; \
|
|
done
|
|
|
|
endif
|
|
|
|
clean:
|
|
rm -f hmcdrvfs *.o
|
|
|
|
.PHONY: all install install-scripts clean check_dep
|