diff options
author | Mika Havela <mika.havela@gmail.com> | 2008-05-21 12:21:57 +0000 |
---|---|---|
committer | Mika Havela <mika.havela@gmail.com> | 2008-05-21 12:21:57 +0000 |
commit | 159347dc4d5015b80e072e330efc9483bc71c5c4 (patch) | |
tree | 02d15dc04a2b2efa6b53896795cd4b6d4527407f /Makefile | |
parent | ad39b9f1f8c039974103663d557bbb7699331020 (diff) | |
download | acf-skins-159347dc4d5015b80e072e330efc9483bc71c5c4.tar.bz2 acf-skins-159347dc4d5015b80e072e330efc9483bc71c5c4.tar.xz |
Moving skins to a separate acf.
git-svn-id: svn://svn.alpinelinux.org/acf/skins/trunk@1140 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7beeedf --- /dev/null +++ b/Makefile @@ -0,0 +1,62 @@ +APP_NAME=skins +PACKAGE=acf-$(APP_NAME) +VERSION=0.1.0 + +APP_DIST=\ + static/alpine.jpg\ + static/alpine_inv.jpg\ + static/reset.css\ + static/watermark.jpg\ + static/prototype.js\ + static/tango/16x16/categories/applications-internet.png \ + static/tango/16x16/places/start-here.png \ + static/tango/16x16/places/network-server.png \ + static/tango/16x16/status/network*.png \ + static/tango/16x16/devices/computer.png \ + static/tango/16x16/devices/network*.png \ + static/tango/16x16/apps/system-users.png \ + ice/* \ + snow/* \ + clouds/* + + +EXTRA_DIST=README Makefile config.mk + +DISTFILES=$(APP_DIST) $(EXTRA_DIST) + +TAR=tar + +P=$(PACKAGE)-$(VERSION) +tarball=$(P).tar.bz2 +install_dir=$(DESTDIR)/$(wwwdir)/skins/ + +all: +clean: + rm -rf $(tarball) $(P) + +dist: $(tarball) + +install: + mkdir -p $(install_dir) + for i in $(WWW_DIST); do\ + dest=`dirname "$(install_dir)/$$i"`;\ + mkdir -p "$$dest";\ + cp "$$i" "$$dest";\ + done + +$(tarball): $(DISTFILES) + rm -rf $(P) + mkdir -p $(P) + cp $(DISTFILES) $(P) + $(TAR) -jcf $@ $(P) + rm -rf $(P) + +# target that creates a tar package, unpacks is and install from package +dist-install: $(tarball) + $(TAR) -jxf $(tarball) + $(MAKE) -C $(P) install DESTDIR=$(DESTDIR) + rm -rf $(P) + +include config.mk + +.PHONY: all clean dist install dist-install |