forked from mbreese/pbswebmon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (42 loc) · 1.3 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Makefile for MPI_START
VERSION=$(shell cat VERSION)
DESTDIR=
PREFIX=/var/www
WEBROOT=/var/www/html
all:
$(MAKE) -C src all
$(MAKE) -C modules all
$(MAKE) -C templates all
$(MAKE) -C docs all
clean:
$(MAKE) -C src clean
$(MAKE) -C modules clean
$(MAKE) -C templates clean
$(MAKE) -C docs clean
install:
mkdir -p $(DESTDIR)/$(WEBROOT)/pbswebmon
mkdir -p $(DESTDIR)/$(PREFIX)/cgi-bin
mkdir -p $(DESTDIR)/etc
mkdir -p $(DESTDIR)/usr/share/doc/pbswebmon
install -m 755 cgi-bin/pbswebmon.py $(DESTDIR)/$(PREFIX)/cgi-bin/pbswebmon.py
install -m 644 js/*.js $(DESTDIR)/$(WEBROOT)/pbswebmon
install -m 644 css/*.css $(DESTDIR)/$(WEBROOT)/pbswebmon
install -m 644 *.html $(DESTDIR)/$(WEBROOT)/pbswebmon
install -m 644 pbswebmon.conf $(DESTDIR)/etc/pbswebmon.conf
install -m 644 README $(DESTDIR)/usr/share/doc/pbswebmon/README
doc:
mkdir -p documentation
doxygen
#dist:
# rm -rf pbswebmon-$(VERSION)
# svn export https://pbswebmon.svn.sourceforge.net/svnroot/pbswebmon/tags/pbswebmon-$(VERSION) pbswebmon-$(VERSION)
# sed -e "s/@VERSION@/$(VERSION)/" pbswebmon.spec.in > pbswebmon-$(VERSION)/pbswebmon-$(VERSION).spec
# tar cvzf pbswebmon-$(VERSION).tar.gz pbswebmon-$(VERSION)
# rm -rf pbswebmon-$(VERSION)
#
#
#rpm: dist
# rpmbuild -ta pbswebmon-$(VERSION).tar.gz
export VERSION
export PREFIX
export DESTDIR