summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 7d81d7a2109004444cea2c97dadde1f3dbc9e20a (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
VERSION=`git describe | sed 's/^v//; s/-/./g' `
NAME="cud-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/cud
	mkdir -p $(DESTDIR)$(prefix)/share/portail-citoyen2/cud
	cp -r idp/* $(DESTDIR)$(prefix)/share/authentic2/cud
	cp -r portail-citoyen/* $(DESTDIR)$(prefix)/share/portail-citoyen2/cud

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

version:
	@(echo $(VERSION))

name:
	@(echo $(NAME))

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