Skip to content

Commit

Permalink
policycoreutils/setfiles: do not create useless setfiles.8.man file
Browse files Browse the repository at this point in the history
Seems to have been there to allow for some sed substitution over the
text. Now that this is gone, the redundant intermediate file can be
removed, too.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
  • Loading branch information
WOnder93 authored and fishilico committed Apr 20, 2021
1 parent bad0a74 commit 6cfebe7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion policycoreutils/setfiles/.gitignore

This file was deleted.

9 changes: 3 additions & 6 deletions policycoreutils/setfiles/Makefile
Expand Up @@ -13,7 +13,7 @@ ifeq ($(AUDITH), y)
override LDLIBS += -laudit
endif

all: setfiles restorecon restorecon_xattr man
all: setfiles restorecon restorecon_xattr

setfiles: setfiles.o restore.o

Expand All @@ -22,16 +22,13 @@ restorecon: setfiles

restorecon_xattr: restorecon_xattr.o restore.o

man:
@cp -af setfiles.8 setfiles.8.man

install: all
[ -d $(DESTDIR)$(MANDIR)/man8 ] || mkdir -p $(DESTDIR)$(MANDIR)/man8
-mkdir -p $(DESTDIR)$(SBINDIR)
install -m 755 setfiles $(DESTDIR)$(SBINDIR)
(cd $(DESTDIR)$(SBINDIR) && ln -sf setfiles restorecon)
install -m 755 restorecon_xattr $(DESTDIR)$(SBINDIR)
install -m 644 setfiles.8.man $(DESTDIR)$(MANDIR)/man8/setfiles.8
install -m 644 setfiles.8 $(DESTDIR)$(MANDIR)/man8/setfiles.8
install -m 644 restorecon.8 $(DESTDIR)$(MANDIR)/man8/restorecon.8
install -m 644 restorecon_xattr.8 $(DESTDIR)$(MANDIR)/man8/restorecon_xattr.8
for lang in $(LINGUAS) ; do \
Expand All @@ -42,7 +39,7 @@ install: all
done

clean:
rm -f setfiles restorecon restorecon_xattr *.o setfiles.8.man
rm -f setfiles restorecon restorecon_xattr *.o

indent:
../../scripts/Lindent $(wildcard *.[ch])
Expand Down

0 comments on commit 6cfebe7

Please sign in to comment.