Update Makefile

This commit is contained in:
Moritz Lipp 2012-02-08 15:36:08 +01:00
parent 34b6fffc33
commit 924f06c607
2 changed files with 7 additions and 5 deletions

View file

@ -50,7 +50,8 @@ ${PROJECT}: ${OBJECTS}
clean:
$(QUIET)rm -rf ${PROJECT} ${OBJECTS} ${PROJECT}-${VERSION}.tar.gz \
${DOBJECTS} ${PROJECT}-debug .depend ${PROJECT}.pc
${DOBJECTS} ${PROJECT}-debug .depend ${PROJECT}.pc doc
$(QUIET)make -C tests clean
${PROJECT}-debug: ${DOBJECTS}
$(ECHO) CC -o $@
@ -76,8 +77,8 @@ tests: ${OBJECTS}
dist: clean
$(QUIET)mkdir -p ${PROJECT}-${VERSION}
$(QUIET)cp -R LICENSE Makefile config.mk README Doxyfile \
${PROJECT}.1 ${SOURCE} ${HEADER} ${PROJECT}.pc.in \
$(QUIET)cp -R LICENSE Makefile config.mk common.mk README Doxyfile \
${PROJECT}.1 ${SOURCE} ${HEADER} ${PROJECT}.pc.in tests \
${PROJECT}-${VERSION}
$(QUIET)tar -cf ${PROJECT}-${VERSION}.tar ${PROJECT}-${VERSION}
$(QUIET)gzip ${PROJECT}-${VERSION}.tar

View file

@ -21,7 +21,7 @@ ZSOURCE += ../database-plain.c
endif
endif
all: options ${PROJECT} run
all: ${PROJECT} run
run: ${PROJECT}
$(QUIET)./${PROJECT}
@ -38,7 +38,8 @@ options:
@mkdir -p .depend
$(QUIET)${CC} -c -I.. ${CPPFLAGS} ${CFLAGS} -o $@ $< -MMD -MF .depend/$@.dep
${PROJECT}: ${OBJECTS}
${PROJECT}: options ${OBJECTS}
$(QUIET)make -C ..
$(ECHO) CC -o $@
$(QUIET)${CC} ${SFLAGS} ${LDFLAGS} -o $@ ${OBJECTS} ${ZOBJECTS} ${LIBS}