2 CFLAGS
:= -g
-c
-Wall
$(XFLAGS
)
9 MANDIR
=$(PREFIX
)/man
/man1
11 TWEAK
:= main.o keytab.o actions.o search.o rcfile.o buffer.o btree.o
14 # INCLUDE += -I/path/to/slang/include
15 # LIBS += -L/path/to/slang/lib
26 all: tweak tweak
.1 btree.html
29 $(LINK
) -o tweak
$(TWEAK
) $(LIBS
)
37 # Ensure tweak.h reflects this version number, and then run a
38 # command like `make release VERSION=3.00'.
39 release
: tweak
.1 btree.html
40 mkdir
-p reltmp
/tweak-
$(VERSION
)
41 for i in LICENCE
*.c
*.h
*.but tweak
.1 btree.html Makefile
; do \
42 ln
-s ..
/..
/$$i reltmp
/tweak-
$(VERSION
); \
44 (cd reltmp
; tar chzvf ..
/tweak-
$(VERSION
).
tar.gz tweak-
$(VERSION
))
47 install: tweak tweak
.1
49 install tweak
$(BINDIR
)/tweak
51 install -m
0644 tweak
.1 $(MANDIR
)/tweak
.1
54 rm -f
*.o tweak tweak
.1 btree.html
56 main.o
: main.c tweak.h
57 keytab.o
: keytab.c tweak.h
58 actions.o
: actions.c tweak.h
59 search.o
: search.c tweak.h
60 rcfile.o
: rcfile.c tweak.h
61 buffer.o
: buffer.c tweak.h btree.h
62 slang.o
: slang.c tweak.h
63 curses.o
: curses.c tweak.h
64 btree.o
: btree.c btree.h