File: Makefile

package info (click to toggle)
unhtml 2.3.9-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 252 kB
  • ctags: 51
  • sloc: ansic: 486; makefile: 71; awk: 2
file content (40 lines) | stat: -rw-r--r-- 707 bytes parent folder | download | duplicates (4)
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
#
# 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
MAKE   = make
RM     = rm -f
CFLAGS = -Wall
# CFLAGS = -Wall -DDEBUG


all:	unhtml

unhtml:	unhtml.o ops.o esc.o
	$(CC) $(CFLAGS) -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

check: all
	$(MAKE) -C tests

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