-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added makefile for buildroot integration
- Loading branch information
1 parent
eea5323
commit 1421e08
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Copyright (C) 2015 Onion Corporation | ||
# | ||
# Author: Lazar Demin <[email protected]> | ||
# Date: Oct 6, 2015 | ||
# | ||
# This is free software, licensed under the GNU General Public License v2. | ||
# See /LICENSE for more information. | ||
# | ||
|
||
SRCDIR := www | ||
SOURCES := $(shell find $(SRCDIR) -maxdepth 1 -mindepth 1 -type d) | ||
SOURCES += www/index.html | ||
|
||
DSTDIR := dist | ||
|
||
all: clean copy | ||
|
||
copy: | ||
@mkdir -p $(DSTDIR) | ||
@cp -r $(SOURCES) $(DSTDIR) | ||
@rm -rf `find dist -name "*bower*"` | ||
@rm -rf `find dist -name "demo"` | ||
@rm -rf `find dist -name "test"` | ||
@rm -rf `find dist -name "*.md"` | ||
@rm -rf `find dist -name "LICENSE*"` | ||
@rm -rf `find dist -name "COPYING*"` | ||
@rm -rf `find dist -name "package.json"` | ||
@rm -rf `find dist -name ".git*"` | ||
@rm -rf `find dist -name ".DS_Store"` | ||
|
||
clean: | ||
@rm -rf $(DSTDIR) |