Unnamed Fossil Project

Check-in [1dc847ff65]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:add install target to makefile
Timelines: family | ancestors | trunk
Files: files | file ages | folders
SHA1:1dc847ff6523725bc582b0fcfd6a276b867913d2
User & Date: labla 2012-05-17 20:21:03
Context
2012-05-17
20:21
add install target to makefile Leaf check-in: 1dc847ff65 user: labla tags: trunk
19:48
import simple makefile check-in: f7cdc36248 user: labla tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to Makefile.




1
2
3
4
5
6
7
..
12
13
14
15
16
17
18
19




20
21
22



PROG=	nawk
OBJS=	y.tab.o awk0.o awk1.o awk2.o awk3.o awk4.o \
	wsdup.o wslen.o wsprintf.o

LDFLAGS+=	-lm -lintl
CFLAGS+=	-O2 -ansi -Wall -Wno-missing-braces -Wno-parentheses -Wno-uninitialized -Wno-char-subscripts 

................................................................................

.c.o:	y.tab.h awk.h compat.h
	$(CC) -o $@ -c $< $(CFLAGS)

y.tab.c:	awk.y
	${YACC} -d awk.y

.PHONY: clean





clean:
	rm -f $(PROG) $(OBJS) y.tab.c y.tab.h
>
>
>







 







|
>
>
>
>



1
2
3
4
5
6
7
8
9
10
..
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
PREFIX=/usr/local
MANPREFIX=${PREFIX}/man/man1

PROG=	nawk
OBJS=	y.tab.o awk0.o awk1.o awk2.o awk3.o awk4.o \
	wsdup.o wslen.o wsprintf.o

LDFLAGS+=	-lm -lintl
CFLAGS+=	-O2 -ansi -Wall -Wno-missing-braces -Wno-parentheses -Wno-uninitialized -Wno-char-subscripts 

................................................................................

.c.o:	y.tab.h awk.h compat.h
	$(CC) -o $@ -c $< $(CFLAGS)

y.tab.c:	awk.y
	${YACC} -d awk.y

.PHONY: clean install

install: $(PROG) nawk.1
	install -m 0755 $(PROG) ${DESTDIR}${PREFIX}/bin/$(PROG)
	install -m 0644 nawk.1 ${DESTDIR}${MANPREFIX}/nawk.1

clean:
	rm -f $(PROG) $(OBJS) y.tab.c y.tab.h