mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 21:06:01 +01:00
Update Makefile
This commit is contained in:
parent
34b6fffc33
commit
924f06c607
2 changed files with 7 additions and 5 deletions
7
Makefile
7
Makefile
|
@ -50,7 +50,8 @@ ${PROJECT}: ${OBJECTS}
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(QUIET)rm -rf ${PROJECT} ${OBJECTS} ${PROJECT}-${VERSION}.tar.gz \
|
$(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}
|
${PROJECT}-debug: ${DOBJECTS}
|
||||||
$(ECHO) CC -o $@
|
$(ECHO) CC -o $@
|
||||||
|
@ -76,8 +77,8 @@ tests: ${OBJECTS}
|
||||||
|
|
||||||
dist: clean
|
dist: clean
|
||||||
$(QUIET)mkdir -p ${PROJECT}-${VERSION}
|
$(QUIET)mkdir -p ${PROJECT}-${VERSION}
|
||||||
$(QUIET)cp -R LICENSE Makefile config.mk README Doxyfile \
|
$(QUIET)cp -R LICENSE Makefile config.mk common.mk README Doxyfile \
|
||||||
${PROJECT}.1 ${SOURCE} ${HEADER} ${PROJECT}.pc.in \
|
${PROJECT}.1 ${SOURCE} ${HEADER} ${PROJECT}.pc.in tests \
|
||||||
${PROJECT}-${VERSION}
|
${PROJECT}-${VERSION}
|
||||||
$(QUIET)tar -cf ${PROJECT}-${VERSION}.tar ${PROJECT}-${VERSION}
|
$(QUIET)tar -cf ${PROJECT}-${VERSION}.tar ${PROJECT}-${VERSION}
|
||||||
$(QUIET)gzip ${PROJECT}-${VERSION}.tar
|
$(QUIET)gzip ${PROJECT}-${VERSION}.tar
|
||||||
|
|
|
@ -21,7 +21,7 @@ ZSOURCE += ../database-plain.c
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all: options ${PROJECT} run
|
all: ${PROJECT} run
|
||||||
|
|
||||||
run: ${PROJECT}
|
run: ${PROJECT}
|
||||||
$(QUIET)./${PROJECT}
|
$(QUIET)./${PROJECT}
|
||||||
|
@ -38,7 +38,8 @@ options:
|
||||||
@mkdir -p .depend
|
@mkdir -p .depend
|
||||||
$(QUIET)${CC} -c -I.. ${CPPFLAGS} ${CFLAGS} -o $@ $< -MMD -MF .depend/$@.dep
|
$(QUIET)${CC} -c -I.. ${CPPFLAGS} ${CFLAGS} -o $@ $< -MMD -MF .depend/$@.dep
|
||||||
|
|
||||||
${PROJECT}: ${OBJECTS}
|
${PROJECT}: options ${OBJECTS}
|
||||||
|
$(QUIET)make -C ..
|
||||||
$(ECHO) CC -o $@
|
$(ECHO) CC -o $@
|
||||||
$(QUIET)${CC} ${SFLAGS} ${LDFLAGS} -o $@ ${OBJECTS} ${ZOBJECTS} ${LIBS}
|
$(QUIET)${CC} ${SFLAGS} ${LDFLAGS} -o $@ ${OBJECTS} ${ZOBJECTS} ${LIBS}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue