forked from essiene/fastiga
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (26 loc) · 806 Bytes
/
Makefile
File metadata and controls
34 lines (26 loc) · 806 Bytes
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
NAME=fastiga
VERSION=0.1
TARGETS=build/$(NAME).war
all: $(TARGETS)
@echo "All Done"
build/$(NAME).war:
@ant dist
install:
@./install.sh $(DESTDIR)
clean:
@ant clean
distclean:
@ant distclean
dist: distclean
@mkdir -p $(NAME)-$(VERSION)
@cp -r lib src tests web config examples $(NAME)-$(VERSION)/
@cp build.properties build.xml install.conf install.sh Makefile TODO README INSTALL $(NAME).spec $(NAME)-$(VERSION)/
@tar -czvf $(NAME)-$(VERSION).tar.gz $(NAME)-$(VERSION)/
@rm -rf $(NAME)-$(VERSION)
rpm: dist
@rm -rf /usr/src/redhat/SOURCES/$(NAME)*
@rm -rf /usr/src/redhat/RPMS/i386/$(NAME)*
@mv $(NAME)-$(VERSION).tar.gz /usr/src/redhat/SOURCES/
@cp $(NAME).spec /usr/src/redhat/SPECS/
@rpmbuild -bb /usr/src/redhat/SPECS/$(NAME).spec
@mv /usr/src/redhat/RPMS/i386/$(NAME)*.rpm .