Quoting in Makefile
Avoid word splitting and hence potential abuse of variables. Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
parent
9aa266fdc6
commit
cd6e797d5e
14
Makefile
14
Makefile
@ -16,12 +16,12 @@ usage:
|
||||
@echo 'Available targets: "install", "uninstall"'
|
||||
|
||||
install:
|
||||
install -d $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1 $(DESTDIR)$(SYSCONFDIR)/apparmor.d
|
||||
install buddycheck.pl $(DESTDIR)$(BINDIR)/buddycheck
|
||||
pod2man buddycheck.1 > $(DESTDIR)$(MANDIR)/man1/buddycheck.1
|
||||
sed s?__BINDIR__?$(BINDIR)? buddycheck.apparmor > $(DESTDIR)$(SYSCONFDIR)/apparmor.d/buddycheck
|
||||
install -d '$(DESTDIR)$(BINDIR)' '$(DESTDIR)$(MANDIR)/man1' '$(DESTDIR)$(SYSCONFDIR)/apparmor.d'
|
||||
install buddycheck.pl '$(DESTDIR)$(BINDIR)/buddycheck'
|
||||
pod2man buddycheck.1 > '$(DESTDIR)$(MANDIR)/man1/buddycheck.1'
|
||||
sed 's?__BINDIR__?$(BINDIR)?' buddycheck.apparmor > '$(DESTDIR)$(SYSCONFDIR)/apparmor.d/buddycheck'
|
||||
|
||||
uninstall:
|
||||
rm $(BINDIR)/buddycheck
|
||||
rm $(MANDIR)/man1/buddycheck.1
|
||||
rm $(SYSCONFDIR)/apparmor.d/buddycheck
|
||||
rm '$(BINDIR)/buddycheck'
|
||||
rm '$(MANDIR)/man1/buddycheck.1'
|
||||
rm '$(SYSCONFDIR)/apparmor.d/buddycheck'
|
||||
|
Loading…
Reference in New Issue
Block a user