-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
33 lines (26 loc) · 870 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
LIBDIR=/usr/local/share/satysfi
PACKAGE_NAME=satysfi-siunitx
PACKAGE_DIR=$(LIBDIR)/$(PACKAGE_NAME)
.PHONY: all
.PHONY: doc install uninstall
doc: doc/siunitx-ja.saty
install:
install -d "$(PACKAGE_DIR)/doc"
install -m 644 doc/siunitx-ja.saty "$(PACKAGE_DIR)/doc"
install -d "$(PACKAGE_DIR)/packages"
install -m 644 *.satyh "$(PACKAGE_DIR)/packages"
uninstall:
rm -rf "$(PACKAGE_DIR)"
#
# Standard configuration for Satyrographos packages.
#
%.pdf: export SATYSFI_RUNTIME=$(PWD)/.satysfi
%.pdf: %.saty install-package-local
eval `opam env` ; satysfi $<
.PHONY: install-package-local install-package install-package-opam
install-package-local: export SATYSFI_RUNTIME=$(PWD)/.satysfi
install-package-local: install-package
install-package: install-package-opam
eval `opam env` ; satyrographos install
install-package-opam:
opam pin add --yes "file://$(PWD)"