dag

Djmoch's Auto Generator
git clone git://git.danielmoch.com/dag.git
Log | Files | Refs | README | LICENSE

commit 411323b99ed063b3252ec332b4b20e8bfe2cca94
parent 2692d7d79ccb9ec067f50866a035aa8591132b71
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Tue, 23 Nov 2021 21:11:46 -0500

Making: Fix dist target

Diffstat:
MMakefile | 2+-
Mconfig.mk | 47+++++++++++++++++++++++++++++++++++++++++++----
2 files changed, 44 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile @@ -39,7 +39,7 @@ install: dag dagindex uninstall: rm -f ${DESTDIR}${PREFIX}/bin/dag rm -f ${DESTDIR}${PREFIX}/bin/dagindex - rm -f ${DESTDIR}${PREFIX}/man1/dag.1 + rm -f ${DESTDIR}${MANPATH}/man1/dag.1 rm -f ${DESTDIR}${MANPATH}/man1/dagindex.1 rm -f ${DESTDIR}${MANPATH}/man5/dagfile.5 diff --git a/config.mk b/config.mk @@ -2,10 +2,49 @@ PREFIX := /usr/local MANPATH := ${PREFIX}/share/man -HDRS = dagfile.h string.h y.tab.h -DSRC = dag.c dagfile.c string.c y.tab.c lex.yy.c -ISRC = dagindex.c db.c html.c string.c term.c xml.c -DIST_SRC = ${SRC} Makefile README config.mk +SHDRS = dagfile.h \ + db.h \ + html.h \ + string.h \ + term.h \ + xml.h + +HDRS = ${SHDRS} \ + y.tab.h + +DSRC = dag.c \ + dagfile.c \ + string.c \ + y.tab.c \ + lex.yy.c + +ISRC = dagindex.c \ + db.c \ + html.c \ + string.c \ + term.c \ + xml.c + +DIST_SRC = dag.c \ + dagfile.c \ + string.c \ + dagindex.c \ + db.c \ + html.c \ + string.c \ + string_test.c \ + term.c \ + xml.c \ + dag.1 \ + dagindex.1 \ + dagfile.5 \ + Makefile \ + README \ + config.mk \ + parse.y \ + parse.l \ + ${SHDRS} + DOBJ = ${DSRC:.c=.o} IOBJ = ${ISRC:.c=.o} LIBS = -ll -ly