11
Makefile
11
Makefile
@@ -30,7 +30,7 @@ endif
|
|||||||
ifdef BASH_COMPLETION
|
ifdef BASH_COMPLETION
|
||||||
datarootdir = $(BASH_COMPLETION)
|
datarootdir = $(BASH_COMPLETION)
|
||||||
else
|
else
|
||||||
datarootdir = $(prefix)/share
|
datarootdir = $(prefix)/share/bash_completion.d
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Dynamically detect/generate version file as necessary
|
# Dynamically detect/generate version file as necessary
|
||||||
@@ -64,22 +64,22 @@ clean: test-pre-clean
|
|||||||
|
|
||||||
install: installdirs
|
install: installdirs
|
||||||
$(INSTALL_PROGRAM) todo.sh $(DESTDIR)$(bindir)/todo.sh
|
$(INSTALL_PROGRAM) todo.sh $(DESTDIR)$(bindir)/todo.sh
|
||||||
$(INSTALL_DATA) todo_completion $(DESTDIR)$(datarootdir)/bash_completion.d/todo
|
$(INSTALL_DATA) todo_completion $(DESTDIR)$(datarootdir)/todo
|
||||||
[ -e $(DESTDIR)$(sysconfdir)/todo/config ] || \
|
[ -e $(DESTDIR)$(sysconfdir)/todo/config ] || \
|
||||||
sed "s/^\(export[ \t]*TODO_DIR=\).*/\1~\/.todo/" todo.cfg > $(DESTDIR)$(sysconfdir)/todo/config
|
sed "s/^\(export[ \t]*TODO_DIR=\).*/\1~\/.todo/" todo.cfg > $(DESTDIR)$(sysconfdir)/todo/config
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -f $(DESTDIR)$(bindir)/todo.sh
|
rm -f $(DESTDIR)$(bindir)/todo.sh
|
||||||
rm -f $(DESTDIR)$(datarootdir)/bash_completion.d/todo
|
rm -f $(DESTDIR)$(datarootdir)/todo
|
||||||
rm -f $(DESTDIR)$(sysconfdir)/todo/config
|
rm -f $(DESTDIR)$(sysconfdir)/todo/config
|
||||||
|
|
||||||
rmdir $(DESTDIR)$(datarootdir)/bash_completion.d
|
rmdir $(DESTDIR)$(datarootdir)
|
||||||
rmdir $(DESTDIR)$(sysconfdir)/todo
|
rmdir $(DESTDIR)$(sysconfdir)/todo
|
||||||
|
|
||||||
installdirs:
|
installdirs:
|
||||||
mkdir -p $(DESTDIR)$(bindir) \
|
mkdir -p $(DESTDIR)$(bindir) \
|
||||||
$(DESTDIR)$(sysconfdir)/todo \
|
$(DESTDIR)$(sysconfdir)/todo \
|
||||||
$(DESTDIR)$(datarootdir)/bash_completion.d
|
$(DESTDIR)$(datarootdir)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Testing
|
# Testing
|
||||||
@@ -101,3 +101,4 @@ test: aggregate-results
|
|||||||
|
|
||||||
# Force tests to get run every time
|
# Force tests to get run every time
|
||||||
.PHONY: test test-pre-clean aggregate-results $(TESTS)
|
.PHONY: test test-pre-clean aggregate-results $(TESTS)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user