This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
montpellier-themes/wcs/Makefile

42 lines
902 B
Makefile

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))