summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 12 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 306519f..d4a524b 100644
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,8 @@ LDLIBS =
.in:
sed \
- 's:@LIBEXECDIR@:$(LIBEXECDIR):g' \
+ -e 's:@LIBEXECDIR@:$(LIBEXECDIR):g' \
+ -e 's:@SHAREDIR@:$(SHAREDIR):g' \
< $< > $@
if [ -x $< ]; then chmod +x $@; fi
@@ -39,10 +40,14 @@ include deps.mk
sources = \
$(libexec.sh) \
src/$(NAME).in \
+ src/rules.in \
+share-files = \
+ share/$(NAME)/site.mk \
derived-assets = \
src/$(NAME) \
+ src/rules \
side-assets = \
@@ -57,7 +62,8 @@ all: $(derived-assets)
check-unit:
-check-integration:
+check-integration: src/$(NAME)
+ ./tests/integration.sh
## Run all tests. Each test suite is isolated, so that a parallel
@@ -79,10 +85,12 @@ install: all
mkdir -p \
'$(DESTDIR)$(BINDIR)' \
'$(DESTDIR)$(LIBEXECDIR)' \
+ '$(DESTDIR)$(SHAREDIR)/$(NAME)' \
'$(DESTDIR)$(SRCDIR)' \
cp src/$(NAME) '$(DESTDIR)$(BINDIR)'
- cp $(libexec.sh) '$(DESTDIR)$(LIBEXECDIR)'
+ cp $(libexec.sh) src/rules '$(DESTDIR)$(LIBEXECDIR)'
+ cp $(share-files) '$(DESTDIR)$(SHAREDIR)/$(NAME)'
cp $(sources) '$(DESTDIR)$(SRCDIR)'
@@ -93,6 +101,7 @@ uninstall:
rm -rf \
'$(DESTDIR)$(BINDIR)'/$(NAME) \
'$(DESTDIR)$(LIBEXECDIR)' \
+ '$(DESTDIR)$(SHAREDIR)/$(NAME)' \
'$(DESTDIR)$(SRCDIR)' \