Skip to content

Commit

Permalink
[minor] - update Makefile to support "wwwpublish"
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Neill committed Nov 21, 2013
1 parent a1db508 commit 43c5075
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Expand Up @@ -6,6 +6,7 @@ MANDIR = $(DATAROOTDIR)/man
MAN1DIR = $(MANDIR)/man1

WWW_DIR = pulseblaster
WWW_SERV = www:public_html/src/

all :: compile

Expand All @@ -24,7 +25,6 @@ install:
install -m644 README.txt LICENSE.txt index.html $(DOCDIR)
install -m644 man/*.1.bz2 $(MAN1DIR)

.PHONY: www
www:
rm -rf www .www
mkdir -p .www/$(WWW_DIR)/$(WWW_DIR)
Expand All @@ -51,6 +51,11 @@ www:
cp index.html README.txt www/$(WWW_DIR)/
@echo "Now, upload www/$(WWW_DIR)/ and link to www/$(WWW_DIR)/index.html"

.PHONY: wwwpublish
wwwpublish: www
@echo "Uploading to web for publication..."
scp -r www/$(WWW_DIR)/ $(WWW_SERV)

clean:
make -C driver clean
make -C pb_utils clean
Expand Down

0 comments on commit 43c5075

Please sign in to comment.