build: adapt to merge of wcs themes (#5917)

This commit is contained in:
Frédéric Péters 2014-11-10 13:37:57 +01:00
parent 014ff245a3
commit 080300de7f
2 changed files with 8 additions and 42 deletions

View File

@ -4,9 +4,12 @@ NAME="montpellier-themes"
prefix = /usr
all:
@(echo "Nothing to build. Please use make install.")
(cd wcs/montpellier2 && msgfmt -o fr.mo fr.po)
(cd wcs/montpellier-commune && msgfmt -o fr.mo fr.po)
clean:
rm -f wcs/montpellier2/fr.mo
rm -f wcs/montpellier-commune/fr.mo
rm -rf build sdist
build: clean
@ -20,8 +23,12 @@ build: clean
install:
mkdir -p $(DESTDIR)$(prefix)/share/authentic2/montpellier
mkdir -p $(DESTDIR)$(prefix)/share/portail-citoyen2/montpellier
mkdir -p $(DESTDIR)$(prefix)/share/wcs/themes/montpellier2
mkdir -p $(DESTDIR)$(prefix)/share/wcs/themes/montpellier-commune
cp -r idp/* $(DESTDIR)$(prefix)/share/authentic2/montpellier
cp -r portail-citoyen/* $(DESTDIR)$(prefix)/share/portail-citoyen2/montpellier
cp -ar wcs/montpellier2/* $(DESTDIR)$(prefix)/share/wcs/themes/montpellier2/
cp -ar wcs/montpellier-commune/* $(DESTDIR)$(prefix)/share/wcs/themes/montpellier-commune/
dist-bzip2: build
mkdir sdist

View File

@ -1,41 +0,0 @@
VERSION=`git describe`
NAME="montpellier-themes-wcs"
prefix = /usr
all:
(cd montpellier2 && msgfmt -o fr.mo fr.po)
(cd montpellier-commune && msgfmt -o fr.mo fr.po)
clean:
rm -f montpellier2/fr.mo
rm -f montpellier-commune/fr.mo
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: all
mkdir -p $(DESTDIR)$(prefix)/share/wcs/themes/montpellier2
mkdir -p $(DESTDIR)$(prefix)/share/wcs/themes/montpellier-commune
cp -ar montpellier2/* $(DESTDIR)$(prefix)/share/wcs/themes/montpellier2/
cp -ar montpellier-commune/* $(DESTDIR)$(prefix)/share/wcs/themes/montpellier-commune/
dist-bzip2: build
mkdir sdist
cd build && tar cfj ../sdist/$(NAME)-$(VERSION).tar.bz2 .
version:
@(echo $(VERSION))
name:
@(echo $(NAME))
fullname:
@(echo $(NAME)-$(VERSION))