aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2017-11-23 22:17:40 +0000
committerHarry Jeffery <harry@exec64.co.uk>2017-11-23 22:18:28 +0000
commite2954b8108a5bbb441d1c98fa4888ba62611432f (patch)
tree0ef05ce1d33e0ce081d2884457f51d69a3f90650 /Makefile
parent610a2894c08113a013e9e9b4a9b33f1ed19b3151 (diff)
downloadimv-e2954b8108a5bbb441d1c98fa4888ba62611432f.tar.gz
Provide default global config file
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c25a276..cbf8d20 100644
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,7 @@ PREFIX ?= /usr
BINPREFIX ?= $(PREFIX)/bin
MANPREFIX ?= $(PREFIX)/share/man
DATAPREFIX ?= $(PREFIX)/share
+CONFIGPREFIX ?= /etc
CFLAGS ?= -W -Wall -pedantic -Wmissing-prototypes
CFLAGS += -std=c99
@@ -52,8 +53,10 @@ install: $(TARGET)
install -D -m 0755 $(TARGET) $(DESTDIR)$(BINPREFIX)/imv
install -D -m 0644 doc/imv.1 $(DESTDIR)$(MANPREFIX)/man1/imv.1
install -D -m 0644 files/imv.desktop $(DESTDIR)$(DATAPREFIX)/applications/imv.desktop
+ install -D -m 0644 files/imv_config $(DESTDIR)$(CONFIGPREFIX)/imv_config
uninstall:
$(RM) $(DESTDIR)$(BINPREFIX)/imv
$(RM) $(DESTDIR)$(MANPREFIX)/man1/imv.1
$(RM) $(DESTDIR)$(DATAPREFIX)/applications/imv.desktop
+ @echo "$(DESTDIR)$(CONFIGPREFIX)/imv_config has not been removed. Please remove it manually."