source: trunk/bundle/Makefile @ 319

Last change on this file since 319 was 57, checked in by g7moreau, 13 years ago
  • Add Makefile
  • Property svn:eol-style set to native
File size: 757 bytes
Line 
1
2# General configuration
3
4PODFLAG := -c 'User Profile Documentation' -r 'LEGI Trokata'
5
6TARGET_MAN  := bundle.1
7TARGET_HTML := bundle.html
8
9PREFIX     :=/etc/sysprofile.d
10PREFIX_MAN :=/usr/share/man
11
12
13# User specific configuration
14
15sinclude config.mk
16
17
18# Target and rules
19
20.PHONY: all clean install update sync upload
21
22all: $(TARGET_MAN) $(TARGET_HTML)
23
24clean:
25        rm -f *.1 *.html
26
27install: update
28
29update:
30        @install -d -m 0755 -o root -g root $(PREFIX_MAN)/man1
31        install -m 0644 -o root -g root bundle.bash $(PREFIX)/
32        install -m 0644 -o root -g root bundle.1 $(PREFIX_MAN)/man1
33
34sync:
35        svn update
36
37upload:
38        cadaver --rcfile=cadaverrc
39
40%.1: %.bash
41        pod2man -n $* $(PODFLAG) $< > $@
42
43%.html: %.bash
44        pod2html $< > $@
45
46# User specific rules
47
48sinclude rules.mk
Note: See TracBrowser for help on using the repository browser.