-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
72 lines (58 loc) · 2.11 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
a=AAQ
.PHONY: all ctags install clean install-gotham install-norton tags
modified := $(shell git status -uno | awk '/(new file|modified): .*\.lua/{print $$NF ".ok"}' | sort)
allfiles := $(shell { echo $a.txt; egrep -v '^[ ]*(;|#|$$)' $a.txt; } | sort)
FORCE := false
s:=/home/cgf/.local/share/Steam/steamapps/compatdata/306130/pfx/drive_c/users/steamuser/My?Documents/Elder?Scrolls?Online/live/AddOns/$a
t:=/home/cgf/.local/share/Steam/steamapps/compatdata/306130/pfx/drive_c/users/steamuser/My?Documents/Elder?Scrolls?Online/pts/AddOns/$a
e:=/c/Users/cgf/Documents/Elder\ Scrolls\ Online/live/AddOns/$a
f:=/c/Users/cgf/Documents/Elder\ Scrolls\ Online/pts/AddOns/$a
# allfiles := $(shell ( echo $a.txt ; egrep -v '^[ ]*[;#]|$$' $a.txt; } | sort )
all: ${modified} | gotham-mounted
.PHONY: FORCE
FORCE:
%.lua.ok: %.lua
@unexpand -a -I $?
esolua $?
@touch $@
.PHONY: tags ctags
tags ctags:
@ctags --language-force=lua **/*.lua
.PHONY: install
install: install-gotham install-ednor# install-norton
.PHONY: install-gotham
install-gotham: | all clean
@rm -rf /smb$e/*
@echo Rsyncing to gotham live...
@/usr/bin/rsync -aR --delete --force ${allfiles} /smb$e
@echo Rsyncing to gotham PTS...
@/usr/bin/rsync -aR --delete --force ${allfiles} /smb$f
@touch /smb$e//../AAQ/AAQ.txt
.PHONY: install-ednor
install-ednor: | all clean
@rm -rf /smb1$e/*
@echo Rsyncing to ednor live...
@/usr/bin/rsync -aR --delete --force ${allfiles} $s
@echo Rsyncing to ednor PTS...
@/usr/bin/rsync -aR --delete --force ${allfiles} $t
@touch $s//../AAQ/AAQ.txt
.PHONY: install-norton
install-norton: norton-mounted | all clean
@rm -rf /smb1$e/*
@echo Rsyncing to norton live...
@/usr/bin/rsync -aR --delete --force ${allfiles} /smb1$e
@echo Rsyncing to norton PTS...
@/usr/bin/rsync -aR --delete --force ${allfiles} /smb1$f
@touch /smb1$e//../AAQ/AAQ.txt
.PHONY: clean
clean:
@/share/bin/devoclean
.PHONY: distclean
distclean: clean
@find . -name '*.ok' -exec rm {} +
.PHONY: gotham-mounted
gotham-mounted:
@[ -d /smb/c/tmp ] || /usr/local/bin/r bmount gotham
.PHONY: norton-mounted
norton-mounted:
@[ -d /smb1/c/tmp ] || /usr/local/bin/r bmount norton