File: Makefile

package info (click to toggle)
man2html 1.6f%2Brepack-1%2Bsqueeze1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 3,416 kB
  • ctags: 2,894
  • sloc: ansic: 9,558; sh: 2,301; makefile: 343; perl: 335; awk: 305; lisp: 171; cs: 170
file content (46 lines) | stat: -rw-r--r-- 990 bytes parent folder | download | duplicates (3)
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
#
# $Id: Makefile,v 1.5 2003-02-25 21:10:26 robert Exp $
# 
CGI_DIR    = $(PREFIX)/usr/lib/cgi-bin/man
SHARE_DIR  = $(PREFIX)/usr/share/man2html
DOC_DIR    = $(PREFIX)/usr/share/doc/man2html

CGIBASE	   = /cgi-bin/man
MAN_CONFIG = /etc/manpath.config

DEFINES =   -DMAN_CONFIG='"$(MAN_CONFIG)"'
CFLAGS = -pipe -g -Wall $(DEFINES) $(DEBIAN_CFLAGS)

#
# Installer program:
#
INSTALL = install


targets: mansec manwhatis man2html.cgi

utils.o: utils.c utils.h

manwhatis: manwhatis.o utils.o
	$(CC) $(CFLAGS) $^ -o $@

mansec: manwhatis
	ln -fs $< $@

man2html.cgi: man2html.cgi.o utils.o
	$(CC) $(CFLAGS) $^ -o $@

install: targets
	$(INSTALL) -p -m 0755 man2html.cgi $(CGI_DIR)/man2html
	$(INSTALL) -p -m 0755 mansearch $(CGI_DIR)
	$(INSTALL) -p -m 0755 manwhatis $(CGI_DIR)
	ln $(CGI_DIR)/manwhatis $(CGI_DIR)/mansec
	$(INSTALL) -p -m0644 swish++.conf  $(SHARE_DIR)
	$(INSTALL) -p -m0644 man.html $(DOC_DIR)/html


clean:
	rm -f *.o *~ core manwhatis mansec man2html.cgi

spotless: clean