File: Makefile

package info (click to toggle)
sigit 0.3.2-2
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 612 kB
  • ctags: 192
  • sloc: ansic: 4,796; sh: 2,461; makefile: 138
file content (41 lines) | stat: -rw-r--r-- 910 bytes parent folder | download
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
#
#
# $Id: Makefile,v 1.3 2003/07/18 10:58:10 redhead Exp $ 

include ../Makefile.guess
include ../Makefile.rules

DOCSRC=sigit.pod sigitdb.pod 

DOCOBJ=$(DOCSRC:.pod=.1)

all: $(DOCSRC) doc

doc: 
ifeq ($(DOC), yes)
	$(MAKE) $(DOCOBJ)
	pod2man --section=5 --release="Amusements" \
	--center="By Kenneth 'Redhead' Nielsen" \
	--official sigit.rc.pod > sigit.rc.5
endif

clean:
	rm -f  *.1 *.5 *.o *~ core \#*\# .\#* *.save

distclean: clean


install: all
ifeq ($(DOC), yes)
	$(INSTALL) -d $(INSTALLROOT)$(MANDIR)/man1
	$(INSTALL) -d $(INSTALLROOT)$(MANDIR)/man5
	$(INSTALL) -m $(MANMODE) sigit.1 $(INSTALLROOT)$(MANDIR)/man1
	$(INSTALL) -m $(MANMODE) sigitdb.1 $(INSTALLROOT)$(MANDIR)/man1
	$(INSTALL) -m $(MANMODE) sigit.rc.5 $(INSTALLROOT)$(MANDIR)/man5
endif

uninstall:
	rm -f $(INSTALLROOT)$(MANDIR)/man1/sigit.*
	rm -f $(INSTALLROOT)$(MANDIR)/man1/sigitdb.*
	rm -f $(INSTALLROOT)$(MANDIR)/man5/sigit.*