sdk: use prepare target to initialize git snapshot
[openwrt/staging/dedeckeh.git] / target / sdk / files / include / prepare.mk
1 #
2 # Copyright (C) 2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 prepare: .git/config
9
10 .git/config:
11 @( \
12 printf "Initializing SDK ... "; \
13 git init -q .; \
14 find . -mindepth 1 -maxdepth 1 -not -name feeds | xargs git add; \
15 git commit -q -m "Initial state"; \
16 echo "ok."; \
17 )