aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..079df9f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,27 @@
+PREFIX = /usr/local
+BINDIR = $(PREFIX)/bin
+LIBDIR = $(PREFIX)/share/bibutils
+
+SCRIPTS = bib-util bib-add bib-check bib-convert bib-extract bib-fetch \
+ bib-gen bib-key bib-ls
+LIBS = lib/bib-parse.awk lib/bib-canon.awk lib/bib-select.awk \
+ lib/bib-lskeys.awk lib/bib-key.awk lib/bib-ls.awk \
+ lib/bib-check.awk lib/bib2ref.awk lib/ref2bib.awk
+
+all:
+ @echo "nothing to build; run 'make test' or 'make install'"
+
+test:
+ tests/run-tests.sh
+ tests/integration.sh
+
+install:
+ -mkdir -p $(BINDIR) $(LIBDIR)
+ cp $(SCRIPTS) $(BINDIR)
+ cp $(LIBS) $(LIBDIR)
+
+uninstall:
+ cd $(BINDIR) && rm -f $(SCRIPTS)
+ rm -rf $(LIBDIR)
+
+.PHONY: all test install uninstall