[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

File: [cvsweb.bsd.lv] / mandoc / Makefile (download)

Revision 1.3, Sat Nov 22 20:15:34 2008 UTC (16 years, 1 month ago) by kristaps
Branch: MAIN
Changes since 1.2: +5 -2 lines

Fuller seperation into mdocml/libmdocml.

CFLAGS += -W -Wall -g

LINTFLAGS += -c -e -f -u

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

all: mdocml

lint: llib-lmdocml.ln

dist: mdocml.tgz

mdocml: mdocml.o libmdocml.o
	$(CC) $(CFLAGS) -o $@ mdocml.o libmdocml.o

clean:
	rm -f $(CLEAN)

mdocml.tgz: $(INSTALL)
	mkdir -p .dist/mdocml/
	install -m 0644 $(INSTALL) .dist/mdocml/
	( cd .dist/ && tar zcf ../mdocml.tgz mdocml/ )
	rm -rf .dist/

llib-lmdocml.ln: mdocml.ln libmdocml.ln
	$(LINT) $(LINTFLAGS) -Cmdocml mdocml.ln libmdocml.ln

mdocml.ln: mdocml.c 

mdocml.o: mdocml.c 

mdocml.c: libmdocml.h

libmdocml.ln: libmdocml.c 

libmdocml.o: libmdocml.c 

libmdocml.c: libmdocml.h