Skip to content

Commit 46ee690

Browse files
committed
Create Makefile
Allows one to simply run `make install` to install BMC. The Makefile will use `kpsewhich` to detect the correct destination directory.
1 parent b03bc88 commit 46ee690

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Makefile

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
TEXMFDIR != kpsewhich -var-value=TEXMFHOME
2+
BMCDIR := $(DESTDIR)$(TEXMFDIR)/bmc
3+
4+
SOURCES := $(wildcard *.sty) $(wildcard *.cls)
5+
6+
.PHONY: dummy
7+
dummy:
8+
@printf 'Run `make -s install` to install BMC.\n'
9+
10+
.PHONY: install
11+
install: $(SOURCES)
12+
@printf 'Copying files to %s...\n' '$(BMCDIR)'
13+
install -D -t $(BMCDIR) $(SOURCES)
14+
install -t $(BMCDIR) LICENCE
15+
@printf 'Done copying files. Run mktexlsr(1) to regenerate the TeX database.\n'

0 commit comments

Comments
 (0)