File: Makefile

package info (click to toggle)
unhtml 2.2-5
  • links: PTS
  • area: main
  • in suites: potato
  • size: 92 kB
  • ctags: 30
  • sloc: ansic: 382; makefile: 52; awk: 2
file content (36 lines) | stat: -rw-r--r-- 653 bytes parent folder | download | duplicates (2)
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
#
# Makefile for unhtml
#
# If you are parsing an HTML file that has a large Javascript program
# in it, you may need to set MAX_TAG_SIZE to something higher and
# recompile
#

CC     = gcc
RM     = rm -f
CFLAGS = -Wall
# CFLAGS = -Wall -DDEBUG


all:	unhtml

unhtml:	unhtml.o ops.o esc.o
	$(CC) -o unhtml unhtml.o ops.o esc.o

unhtml.o:	unhtml.c ops.h esc.h
	$(CC) $(CFLAGS) -c unhtml.c

ops.o:	ops.c ops.h
	$(CC) $(CFLAGS) -c ops.c

esc.o:	esc.c esc.h
	$(CC) $(CFLAGS) -c esc.c

clean:
	$(RM) core *.o unhtml

install:
	cp unhtml /usr/local/bin
	chmod 755 /usr/local/bin/unhtml
	cp unhtml.1 /usr/local/man/man1
	chmod 644 /usr/local/man/man1/unhtml.1