summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: c0cc26c15cb2d9a3aaba1841cbd7a8e1e3f6a452 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
VERSION=`git describe | sed 's/^v//; s/-/./g' `
CUSTOMER="cud"
NAME="$CUSTOMER-themes"

prefix = /usr

all:
	@(echo "Nothing to build. Please use make install.")

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/$(CUSTOMER)
	mkdir -p $(DESTDIR)$(prefix)/share/portail-citoyen2/$(CUSTOMER)
        mkdir -p $(DESTDIR)$(prefix)/share/wcs/themes/$(CUSTOMER)
	cp -r idp/* $(DESTDIR)$(prefix)/share/authentic2/$(CUSTOMER)
	cp -r portail-citoyen/* $(DESTDIR)$(prefix)/share/portail-citoyen2/$(CUSTOMER)
        cp -r wcs/$(CUSTOMER)/* $(DESTDIR)$(prefix)/share/wcs/themes/$(CUSTOMER)

dist-bzip2: build
	mkdir sdist
	cd build && tar cfj ../sdist/$(NAME)-$(VERSION).tar.bz2 .

version:
	@(echo $(VERSION))

name:
	@(echo $(NAME))

fullname:
	@(echo $(NAME)-$(VERSION))