summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2019-11-07 11:21:32 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-11-07 11:42:23 +0000
commitf3dc428ea08900f65fbd24586ae841e1bc687520 (patch)
treee8041aa4b7a40e1e14d5d59b22a5c57eb3fd8e4a /Makefile
parent43fb2c012e4c8a6394e9177e48999bde4de1846a (diff)
downloadabuild-f3dc428ea08900f65fbd24586ae841e1bc687520.tar.gz
abuild-f3dc428ea08900f65fbd24586ae841e1bc687520.tar.bz2
abuild-f3dc428ea08900f65fbd24586ae841e1bc687520.tar.xz
abuild-f3dc428ea08900f65fbd24586ae841e1bc687520.zip
rename datadir -> sharedir
abuild uses datadir as local variable in various functions. Rename the global datadir to sharedir to avoid confusion.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 3e95f81..8c54ca2 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ VERSION := 3.4.0
prefix ?= /usr
bindir ?= $(prefix)/bin
sysconfdir ?= /etc
-datadir ?= $(prefix)/share/$(PACKAGE)
+sharedir ?= $(prefix)/share/$(PACKAGE)
mandir ?= $(prefix)/share/man
SCRIPTS := abuild abuild-keygen abuild-sign newapkbuild \
@@ -36,7 +36,7 @@ LINK = $(CC) $(OBJS-$@) -o $@ $(LDFLAGS) $(LDFLAGS-$@) $(LIBS-$@)
SED_REPLACE := -e 's:@VERSION@:$(FULL_VERSION):g' \
-e 's:@prefix@:$(prefix):g' \
-e 's:@sysconfdir@:$(sysconfdir):g' \
- -e 's:@datadir@:$(datadir):g' \
+ -e 's:@sharedir@:$(sharedir):g' \
SSL_CFLAGS ?= $(shell pkg-config --cflags openssl)
SSL_LDFLAGS ?= $(shell pkg-config --cflags openssl)
@@ -98,7 +98,7 @@ check: $(USR_BIN_FILE) functions.sh
install: $(USR_BIN_FILES) $(SAMPLES) abuild.conf functions.sh
install -d $(DESTDIR)/$(bindir) $(DESTDIR)/$(sysconfdir) \
- $(DESTDIR)/$(datadir) $(DESTDIR)/$(mandir)/man1 \
+ $(DESTDIR)/$(sharedir) $(DESTDIR)/$(mandir)/man1 \
$(DESTDIR)/$(mandir)/man5
for i in $(USR_BIN_FILES); do\
install -m 755 $$i $(DESTDIR)/$(bindir)/$$i;\
@@ -118,7 +118,7 @@ install: $(USR_BIN_FILES) $(SAMPLES) abuild.conf functions.sh
fi
cp $(SAMPLES) $(DESTDIR)/$(prefix)/share/abuild/
cp $(AUTOTOOLS_TOOLCHAIN_FILES) $(DESTDIR)/$(prefix)/share/abuild/
- cp functions.sh $(DESTDIR)/$(datadir)/
+ cp functions.sh $(DESTDIR)/$(sharedir)/
.gitignore: Makefile
echo "*.tar.bz2" > $@