File: Makefile.git

package info (click to toggle)
x42-plugins 20161230-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 14,560 kB
  • ctags: 8,337
  • sloc: ansic: 93,211; cpp: 5,743; makefile: 3,113; objc: 948; sh: 75
file content (23 lines) | stat: -rw-r--r-- 485 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/make

submodules:
	git submodule init
	git submodule update

submodule_update:
	git submodule update

submodule_pull:
	git submodule foreach "git pull"

submodule_check:
	@-test -d .git -a .gitmodules && \
	  git submodule status \
	  | grep -q "^-" \
	  && $(MAKE) submodules || true
	@-test -d .git -a .gitmodules && \
	  git submodule status \
	  | grep -q "^+" \
	  && $(MAKE) submodule_update || true

.PHONY: submodule_check submodules submodule_update submodule_pull