forked from omab/django-social-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (27 loc) · 983 Bytes
/
Makefile
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
doc-tar:
tar -czvf doc-example.tar.gz example/ doc/
rpm: doc-tar
rpmbuild --define "_topdir %(pwd)" \
--define "_builddir /tmp" \
--define "_rpmdir %{_topdir}" \
--define "_srcrpmdir %{_topdir}" \
--define "_specdir %{_topdir}" \
--define "_sourcedir %{_topdir}" \
-ba django-social-auth.spec
mv noarch/*.rpm .
test:
rpmlint -i *.rpm *.spec
clean:
rm -rf noarch/ BUILDROOT/
rm -f doc-example.tar.gz
distclean: clean
rm -f *.rpm
help:
@echo "Usage: make <target> "
@echo " "
@echo " doc-tar - create tarball with docs and example for RPM "
@echo " rpm - create rpm package "
@echo " test - test all packages/spec files with rpmlint "
@echo " clean - clean files used to build "
@echo " distclean - execute clean and remove all output files "
@echo " help - show this help and exit "