diff options
author | Przemyslaw Pawelczyk <przemoc@gmail.com> | 2015-12-01 02:01:56 +0100 |
---|---|---|
committer | Przemyslaw Pawelczyk <przemoc@gmail.com> | 2015-12-01 02:01:56 +0100 |
commit | ce7272c4e1d58c31122d928bf90f123e23e9f348 (patch) | |
tree | c9443a9477f1abbf7c36ba485cc37c24a1111a7d /Makefile | |
parent | f27108a4b114c9d83de25d2beba5c7c0a1d1c20b (diff) |
Makefile: Change name of variables related to installation directories.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 20 |
1 files changed, 11 insertions, 9 deletions
@@ -39,9 +39,11 @@ SRCS_DIR := $(PROJ_DIR)src/ MANS_DIR := $(PROJ_DIR) DESTDIR ?= -prefix = /usr -usrbindir = ${prefix}/bin -mandir = ${prefix}/share/man +PREFIX = /usr +EXECPREFIX = $(PREFIX) +DATAROOTDIR = ${PREFIX}/share +BINDIR = ${EXECPREFIX}/bin +MANDIR = ${DATAROOTDIR}/man vpath %.c $(SRCS_DIR) vpath %.h $(SRCS_DIR) @@ -64,15 +66,15 @@ metastore: $(OBJECTS) install: all $(MANPAGES) - $(INSTALL) -d $(DESTDIR)$(mandir)/man1/ - $(INSTALL_DATA) $(filter %.1,$^) $(DESTDIR)$(mandir)/man1/ - $(INSTALL) -d $(DESTDIR)$(usrbindir)/ - $(INSTALL_PROGRAM) metastore $(DESTDIR)$(usrbindir)/ + $(INSTALL) -d $(DESTDIR)$(MANDIR)/man1/ + $(INSTALL_DATA) $(filter %.1,$^) $(DESTDIR)$(MANDIR)/man1/ + $(INSTALL) -d $(DESTDIR)$(BINDIR)/ + $(INSTALL_PROGRAM) metastore $(DESTDIR)$(BINDIR)/ uninstall: - - rm -f $(addprefix $(DESTDIR)$(mandir)/,$(MANPAGES)) - - rm -f $(DESTDIR)$(usrbindir)/metastore + - rm -f $(addprefix $(DESTDIR)$(MANDIR)/,$(MANPAGES)) + - rm -f $(DESTDIR)$(BINDIR)/metastore clean: |