version 1.1, 2008/11/22 14:53:29 |
version 1.3, 2008/11/22 20:15:34 |
Line 2 CFLAGS += -W -Wall -g |
|
Line 2 CFLAGS += -W -Wall -g |
|
|
|
LINTFLAGS += -c -e -f -u |
LINTFLAGS += -c -e -f -u |
|
|
CLEAN = mdocml mdocml.o mdocml.ln libmdocml.o libmdocml.ln |
CLEAN = mdocml mdocml.o mdocml.ln libmdocml.o libmdocml.ln mdocml.tgz llib-lmdocml.ln |
|
|
INSTALL = Makefile libmdocml.h mdocml.c libmdocml.c mdocml.1 |
INSTALL = Makefile libmdocml.h mdocml.c libmdocml.c mdocml.1 |
|
|
all: mdocml |
all: mdocml |
|
|
lint: mdocml.ln libmdocml.ln |
lint: llib-lmdocml.ln |
|
|
|
dist: mdocml.tgz |
|
|
mdocml: mdocml.o libmdocml.o |
mdocml: mdocml.o libmdocml.o |
$(CC) $(CFLAGS) -o $@ mdocml.o libmdocml.o |
$(CC) $(CFLAGS) -o $@ mdocml.o libmdocml.o |
|
|
clean: |
clean: |
rm -f $(CLEAN) |
rm -f $(CLEAN) |
|
|
dist: |
mdocml.tgz: $(INSTALL) |
mkdir -p .dist/mdocml/ |
mkdir -p .dist/mdocml/ |
install -m 0644 $(INSTALL) .dist/mdocml/ |
install -m 0644 $(INSTALL) .dist/mdocml/ |
( cd .dist/ && tar zcf ../mdocml.tgz mdocml/ ) |
( cd .dist/ && tar zcf ../mdocml.tgz mdocml/ ) |
rm -rf .dist/ |
rm -rf .dist/ |
|
|
|
llib-lmdocml.ln: mdocml.ln libmdocml.ln |
|
$(LINT) $(LINTFLAGS) -Cmdocml mdocml.ln libmdocml.ln |
|
|
mdocml.ln: mdocml.c |
mdocml.ln: mdocml.c |
|
|