-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathMakefile
41 lines (34 loc) · 1.45 KB
/
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
34
35
36
37
38
39
40
41
all: casper_modules_list derecho_modules_list
casper_modules_list: utils/update_module_list.sh
@echo "Updating Casper module list..."
@./$< casper > casper_modules_list.tmp
@mv -f casper_modules_list.tmp docs/compute-systems/casper/casper-modules-list.md
derecho_modules_list: utils/update_module_list.sh
@echo "Updating Derecho module list..."
@./$< derecho > derecho_modules_list.tmp
@mv -f derecho_modules_list.tmp docs/compute-systems/derecho/derecho-modules-list.md
tags TAGS etags: Makefile
if [ "x$(STR)" != "x" ]; then \
echo "Tagging files containing $(STR)" ; \
git grep -l $(STR) ; \
etags $$(git grep -l $(STR)) ; \
else \
echo "Tagging all git managed files:" ; \
git ls-tree -r HEAD --name-only | egrep ".md|.yaml|.yml" | grep -v "confluence_migration"; \
etags $$(git ls-tree -r HEAD --name-only | egrep ".md|.yaml|.yml" | grep -v "confluence_migration") ; \
fi
# this rule invokes emacs on each source file to remove trailing whitespace.
delete-trailing-whitespace:
for file in *.txt *.yaml $$(find ./docs -name "*.md" -type f); do \
echo $$file ; \
emacs -batch $$file --eval '(delete-trailing-whitespace)' -f save-buffer 2>/dev/null ; \
done
dos2unix:
for file in *.yaml $$(find ./docs -name "*.md" -type f); do \
echo $$file ; \
dos2unix $$file ; \
done
NCAR_primary-stylelinks arc_iframe-stylelinks:
topdir=$$(pwd) ; \
target=$(subst -stylelinks,,$@) ; \
cd $${topdir} && ln -sf themes/$${target}.yml theme.yml