...
|
...
|
@@ -0,0 +1,37 @@ |
|
1
|
+PACKAGE = noosfero-spb |
|
2
|
+VERSION = 4.2 |
|
3
|
+DISTDIR = $(PACKAGE)-$(VERSION) |
|
4
|
+TARBALL = $(DISTDIR).tar.gz |
|
5
|
+ |
|
6
|
+all: |
|
7
|
+ @echo Nothing to be $@, all good. |
|
8
|
+ |
|
9
|
+plugins_dir=/usr/lib/noosfero/plugins |
|
10
|
+themes_dir=/usr/lib/noosfero/public/designs/themes |
|
11
|
+noosfero_dir=/usr/lib/noosfero |
|
12
|
+ |
|
13
|
+dist: clean |
|
14
|
+ mkdir $(DISTDIR) |
|
15
|
+ tar --exclude=.git --exclude=$(DISTDIR) -cf - * | (cd $(DISTDIR) && tar xaf -) |
|
16
|
+ tar --exclude=.git -czf $(TARBALL) $(DISTDIR) |
|
17
|
+ |
|
18
|
+clean: |
|
19
|
+ $(RM) $(TARBALL) |
|
20
|
+ $(RM) -r $(DISTDIR) |
|
21
|
+ |
|
22
|
+install: |
|
23
|
+ install -d -m 0755 $(DESTDIR)/$(plugins_dir)/software_communities |
|
24
|
+ cp -vr software_communities/* $(DESTDIR)/$(plugins_dir)/software_communities/ |
|
25
|
+ install -d -m 0755 $(DESTDIR)/$(plugins_dir)/spb_migrations |
|
26
|
+ cp -vr spb_migrations/* $(DESTDIR)/$(plugins_dir)/spb_migrations/ |
|
27
|
+ install -d -m 0755 $(DESTDIR)/$(themes_dir)/noosfero-spb-theme |
|
28
|
+ cp -vr noosfero-spb-theme/* $(DESTDIR)/$(themes_dir)/noosfero-spb-theme/ |
|
29
|
+ install -d -m 0755 $(DESTDIR)/$(plugins_dir)/gov_user |
|
30
|
+ cp -vr gov_user/* $(DESTDIR)/$(plugins_dir)/gov_user/ |
|
31
|
+ cd $(DESTDIR)/$(plugins_dir)/software_communities/ && \ |
|
32
|
+ mkdir -p locale/pt/LC_MESSAGES && \ |
|
33
|
+ msgfmt -o locale/pt/LC_MESSAGES/software_communities.mo po/pt/software_communities.po |
|
34
|
+ cd .. |
|
35
|
+ cd $(DESTDIR)/$(plugins_dir)/gov_user/ && \ |
|
36
|
+ mkdir -p locale/pt/LC_MESSAGES && \ |
|
37
|
+ msgfmt -o locale/pt/LC_MESSAGES/gov_user.mo po/pt/gov_user.po |
...
|
...
|
|