Simple RSS Reader inspired by Gxxgle Reader
Revision | 3368d579e384e60ce8f17a5b372aee23d1ffa1be (tree) |
---|---|
Time | 2013-07-16 00:39:00 |
Author | hylom <hylom@hylo...> |
Commiter | hylom |
update dist/Makefile
@@ -2,10 +2,28 @@ SPEC=grrreader.spec | ||
2 | 2 | VERSION=0.0.5 |
3 | 3 | DIST_DIR=dist |
4 | 4 | TGZ_NAME=grrreader-$(VERSION).tar.gz |
5 | + | |
5 | 6 | all: rpm |
7 | +tarball: $(TGZ_NAME) | |
8 | + | |
9 | +rpm: rpmbuild/SPECS/$(SPEC) rpmbuild/SOURCES/$(TGZ_NAME) | |
10 | + rpmbuild --define "_topdir ${PWD}/rpmbuild" -bp $(SPEC) | |
11 | + | |
12 | +rpmbuild/SPECS/$(SPEC): $(SPEC) rpmbuild/SPECS | |
13 | + cp $< $@ | |
14 | + | |
15 | +rpmbuild/SOURCES/$(TGZ_NAME): $(TGZ_NAME) | |
16 | + cp $< $@ | |
17 | + | |
18 | +rpmbuild: | |
19 | + mkdir -p rpmbuild | |
6 | 20 | |
7 | -rpm: $(SPEC) | |
21 | +rpmbuild/%: rpmbuild | |
22 | + mkdir -p rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS} | |
8 | 23 | |
9 | -tarball: | |
10 | - cd ..; git archive --format=tar release | gzip > $(DIST_DIR)/$(TGZ_NAME) | |
24 | +$(TGZ_NAME): | |
25 | + cd ..; git archive --prefix=grrreader-$(VERSION)/ --format=tar release | gzip > $(DIST_DIR)/$(TGZ_NAME) | |
11 | 26 | |
27 | +clean: | |
28 | + rm -rf rpmbuild | |
29 | + rm -f $(TGZ_NAME) |