tazweb rev 1
Add the Makefile
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Apr 04 02:41:46 2011 +0200 (2011-04-04) |
parents | 301633de4c36 |
children | e604e0010ff1 |
files | Makefile |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/Makefile Mon Apr 04 02:41:46 2011 +0200 1.3 @@ -0,0 +1,33 @@ 1.4 +# Makefile for TazLauncher. 1.5 +# 1.6 +PREFIX?=/usr 1.7 +DOCDIR?=$(PREFIX)/share/doc/slitaz 1.8 +DESTDIR?= 1.9 + 1.10 +PACKAGE=tazweb 1.11 +VERSION=1.0 1.12 + 1.13 +all: 1.14 + gcc src/main.c -o $(PACKAGE) \ 1.15 + `pkg-config --cflags --libs gtk+-2.0 webkit-1.0` 1.16 + 1.17 +toolbar: 1.18 + gcc src/with-toolbar.c -o $(PACKAGE)-toolbar \ 1.19 + `pkg-config --cflags --libs gtk+-2.0 webkit-1.0` 1.20 + 1.21 +install: 1.22 + mkdir -p \ 1.23 + $(DESTDIR)$(DOCDIR)/slitaz \ 1.24 + $(DESTDIR)$(PREFIX)/bin \ 1.25 + $(DESTDIR)$(PREFIX)/share/pixmaps \ 1.26 + $(DESTDIR)$(PREFIX)/share/applications 1.27 + install -m 0777 $(PACKAGE) $(DESTDIR)$(PREFIX)/bin 1.28 + cp -f doc/*.html $(DESTDIR)$(DOCDIR) 1.29 + cp -f data/tazweb-icon.png \ 1.30 + $(DESTDIR)$(PREFIX)/share/pixmaps/tazweb.png 1.31 + install -m 0644 data/tazweb.desktop \ 1.32 + $(DESTDIR)$(PREFIX)/share/applications 1.33 + 1.34 +clean: 1.35 + rm -f $(PACKAGE) 1.36 + rm -f $(PACKAGE)-toolbar