Add a Makefile

This commit is contained in:
Jérôme Schneider 2014-11-27 16:56:14 +01:00
parent bcbedcaeaa
commit 087e9b0d67
1 changed files with 39 additions and 0 deletions

39
Makefile Normal file
View File

@ -0,0 +1,39 @@
VERSION=`git describe | sed 's/^v//; s/-/./g' `
NAME="pratic-themes"
prefix = /usr
all: build
clean:
rm -rf build sdist
build: clean
mkdir -p build/$(NAME)-$(VERSION)
for i in *; do \
if [ "$$i" != "build" ]; then \
cp -R "$$i" build/$(NAME)-$(VERSION); \
fi; \
done
install:
mkdir -p $(DESTDIR)$(prefix)/share/authentic2/pratic
mkdir -p $(DESTDIR)$(prefix)/share/portail-citoyen2/pratic
mkdir -p $(DESTDIR)$(prefix)/share/wcs/themes/pratic
cp -r authentic2/* $(DESTDIR)$(prefix)/share/authentic2/montpellier
cp -r portail-citoyen2/* $(DESTDIR)$(prefix)/share/portail-citoyen2/montpellier
cp -ar wcs/* $(DESTDIR)$(prefix)/share/wcs/themes/
dist-bzip2: build
mkdir sdist
cd build && tar cfj ../sdist/$(NAME)-$(VERSION).tar.bz2 .
version:
@(echo $(VERSION))
name:
@(echo $(NAME))
fullname:
@(echo $(NAME)-$(VERSION))