-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (19 loc) · 688 Bytes
/
Makefile
File metadata and controls
23 lines (19 loc) · 688 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.PHONY: default
default:
@echo "Run 'sudo make install' to install globally. See INSTALL.md."
include include/pandoc.mk
MAKEFILES := $(patsubst include/%,%,$(wildcard include/*))
.PHONY: install
install:
install --mode 755 -D --target-directory $(INCLUDE_DIR)/ \
$(addprefix include/,$(MAKEFILES))
install --mode=644 -D --target-directory $(SHARE_DIR)/style/ \
$(wildcard $(STYLE_DIR)/*.scss)
install --mode=644 -D --target-directory $(SHARE_DIR)/jq/ \
$(wildcard $(JQ_DIR)/*.jq)
install --mode=644 -D --target-directory $(SHARE_DIR)/pandoc/ \
$(wildcard $(PANDOC_DIR)/*)
.PHONY: uninstall
uninstall:
rm -f $(addprefix $(INCLUDE_DIR)/,$(MAKEFILES))
rm -r $(SHARE_DIR)