Skip to content

Commit

Permalink
Create Makefile
Browse files Browse the repository at this point in the history
Allows one to simply run `make install` to install BMC.
The Makefile will use `kpsewhich` to detect the correct destination directory.
  • Loading branch information
kdkasad committed Oct 7, 2022
1 parent b03bc88 commit f66f7e7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
TEXMFDIR != kpsewhich -var-value=TEXMFHOME
BMCDIR := $(DESTDIR)$(TEXMFDIR)/bmc

SOURCES := $(wildcard *.sty) $(wildcard *.cls)

.PHONY: dummy
dummy:
@printf 'Run `make -s install` to install BMC.\n'

.PHONY: install
install: $(SOURCES)
@printf 'Copying files to %s...\n' '$(BMCDIR)'
install -D -t $(BMCDIR) $(SOURCES)
install -t $(BMCDIR) LICENCE
@printf 'Done copying files. Run mktexlsr(1) to regenerate the TeX database.\n'

0 comments on commit f66f7e7

Please sign in to comment.