Skip to content

Commit

Permalink
Added install task to Makefile.
Browse files Browse the repository at this point in the history
  • Loading branch information
neonichu committed Mar 25, 2015
1 parent 3944ed8 commit ab07e57
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Makefile
@@ -1,4 +1,12 @@
.PHONY: test
.PHONY: install test

DIRS=etc lib bin sbin share
INSTALL_DIRS=`find $(DIRS) -type d 2>/dev/null`
INSTALL_FILES=`find $(DIRS) -type f 2>/dev/null`

install:
for dir in $(INSTALL_DIRS); do mkdir -p $(DESTDIR)$(PREFIX)/$$dir; done
for file in $(INSTALL_FILES); do cp $$file $(DESTDIR)$(PREFIX)/$$file; done

test:
SHELL=`command -v bash` ./test/runner

0 comments on commit ab07e57

Please sign in to comment.