diff options
author | astokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2010-03-26 20:38:18 +0000 |
---|---|---|
committer | astokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2010-03-26 20:38:18 +0000 |
commit | b2a9095e4329277a5d793f88f64bacd088032406 (patch) | |
tree | bd6113445621f7211b40f52b338a24f51c578cea /Makefile | |
parent | 1be8e807cbe690b82298fa7572795b55051c13e1 (diff) | |
download | sos-b2a9095e4329277a5d793f88f64bacd088032406.tar.gz |
plugins makefile
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@874 ef72aa8b-4018-0410-8976-d6e080ef94d8
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -8,28 +8,31 @@ RELEASE = $(shell echo `awk '/^Release:/ {gsub(/\%.*/,""); print $2}' sos.spec`) REPO = http://svn.fedorahosted.org/svn/sos TMPDIR = /tmp/$(NAME)-$(VERSION) -SUBDIRS = po sos sos/plugins gpgkeys extras doc doc/_build/html doc/_build/html/_sources doc/_build/html/_static +SUBDIRS = po sos sos/plugins PYFILES = $(wildcard *.py) all: subdirs subdirs: - for d in $(SUBDIRS); do make -C $$d; [$$? = 0] || exit 1; done + for d in $(SUBDIRS); do make -C $$d; [ $$? = 0 ] || exit 1 ; done install: document + mkdir -p $(DESTDIR)/usr/sbin mkdir -p $(DESTDIR)/usr/share/man/man1 + mkdir -p $(DESTDIR)/usr/share/$(NAME)/extras @gzip -c man/en/sosreport.1 > sosreport.1.gz - mkdir -p $(DESTDIR)/usr/share/$(NAME) mkdir -p $(DESTDIR)/usr/share/doc/$(NAME)-$(VERSION)/_sources mkdir -p $(DESTDIR)/usr/share/doc/$(NAME)-$(VERSION)/_static mkdir -p $(DESTDIR)/etc + install -m755 sosreport $(DESTDIR)/usr/sbin/sosreport + install -m755 extras/rh-upload $(DESTDIR)/usr/share/$(NAME)/extras/rh-upload install -m644 sosreport.1.gz $(DESTDIR)/usr/share/man/man1/. install -m644 LICENSE README README.rh-upload TODO $(DESTDIR)/usr/share/$(NAME)/. install -m644 doc/_build/html/*.{html,inv,js} $(DESTDIR)/usr/share/doc/$(NAME)-$(VERSION)/. install -m644 doc/_build/html/_sources/* $(DESTDIR)/usr/share/doc/$(NAME)-$(VERSION)/_sources/. install -m644 doc/_build/html/_static/* $(DESTDIR)/usr/share/doc/$(NAME)-$(VERSION)/_static/. install -m644 $(NAME).conf $(DESTDIR)/etc/$(NAME).conf - make DESTDIR=`cd $(DESTDIR); pwd` -C po install + for d in $(SUBDIRS); do make DESTDIR=`cd $(DESTDIR); pwd` -C $$d install; [ $$? = 0 ] || exit 1; done document: make -C $(PWD)/doc html |