source: trunk/Makefile @ 98

Last change on this file since 98 was 98, checked in by g7moreau, 10 years ago
  • Add new target update to not change cron and css style if user change it
File size: 1.3 KB
Line 
1DESTDIR=
2
3BINDIR=/usr/sbin
4MANDIR=/usr/share/man/man1
5SHAREDIR=/usr/share/klask
6LIBDIR=/usr/lib/klask
7CRONDIR=/etc/cron.d
8ETCDIR=/etc/klask
9
10.PHONY: all install update
11
12all:
13        pod2man klask | gzip > klask.1.gz
14
15install: update
16        install -d -m 0755 -o root -g root $(DESTDIR)/$(SHAREDIR)
17        install    -m 0644 -o root -g root style-klask.css $(DESTDIR)/$(SHAREDIR)
18
19        install -d -m 0755 -o root -g root $(DESTDIR)/$(CRONDIR)
20        install    -m 0644 -o root -g root klask.cron $(DESTDIR)/$(CRONDIR)/klask
21
22update:
23        install -d -m 0755 -o root -g root $(DESTDIR)/$(BINDIR)
24        install    -m 0755 -o root -g root klask $(DESTDIR)/$(BINDIR)
25
26        install -d -m 0755 -o root -g root $(DESTDIR)/$(LIBDIR)
27        install    -m 0755 -o root -g root push-web $(DESTDIR)/$(LIBDIR)
28        install    -m 0755 -o root -g root klask-wrapper $(DESTDIR)/$(LIBDIR)
29
30        install -d -m 0755 -o root -g root $(DESTDIR)/$(MANDIR)
31        install    -m 0644 -o root -g root klask.1.gz $(DESTDIR)/$(MANDIR)
32
33        install -d -m 0755 -o root -g root $(DESTDIR)/$(SHAREDIR)
34        install    -m 0644 -o root -g root sorttable-klask.js $(DESTDIR)/$(SHAREDIR)
35
36        install -d -m 0755 -o root -g root $(DESTDIR)/$(ETCDIR)
37        install    -m 0644 -o root -g root klask-sample.conf $(DESTDIR)/$(ETCDIR)
38        install    -m 0644 -o root -g root push-web-sample.conf $(DESTDIR)/$(ETCDIR)
Note: See TracBrowser for help on using the repository browser.