forked from RHIT-CSSE/csse220
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.profMakeBackup
33 lines (26 loc) · 918 Bytes
/
.profMakeBackup
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
SHELL = /bin/bash
# we want the freedom to have a traditional git ignore
# so this is just stuff that we don't want to check in
define GIT_IGNORED
Makefile
_site
Private
endef
all: .git/info/exclude .profMakeBackup
.PHONY : all demo
demo:
bundle exec jekyll serve --watch
# rules for symlinking all the stuff in private into the other directories
# but preventing those simlinks from being checked into git
.git/info/exclude : $(PRIVATE_FILES)
# this does the recreate
find . -type l -delete
cp -Rsn $(CURDIR)/Private/* .
# this prevents the links from being used in git
$(file > .git/info/exclude,$(GIT_IGNORED))
find . -type l -printf '%P\n' >> .git/info/exclude
# we don't want to check the makefile in as Makefile because it might
# be confused for a real Makefile. But it really should be checked
# into the repo
.profMakeBackup: Makefile
cp Makefile .profMakeBackup