Skip to content

Commit

Permalink
Added makefile for buildroot integration
Browse files Browse the repository at this point in the history
  • Loading branch information
greenbreakfast committed Oct 6, 2015
1 parent eea5323 commit 1421e08
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Makefile
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)

0 comments on commit 1421e08

Please sign in to comment.