- ${CC} -g ${CFLAGS} mkdate.c -o mkdate
-
-dbx.0: dbx.1
- nroff -mandoc dbx.1 > dbx.0
-
-print:
- @echo "don't print it, it's too long"
-
-depend:
-
-#
-# Don't worry about the removal of header files, they're created from
-# the source files.
-#
-
-clean:
- rm -f ${HDR} ${OBJ} y.tab.c y.tab.h ${AOUT} mkdate mkdate.o \
- makedefs makedefs.o date.c core mon.out prof.out make.out \
- cerror.s ops.c machine.c runtime.c date.o
- @chdir tests; make clean
-
-cleandir: clean
- rm -f dbx.0 tags .depend
-
-cleandefs:
- rm -f ${HDR} y.tab.h
-
-testinstall: ${AOUT} test install
-
-test:
- @cd tests; make
-
-install: ${AOUT} dbx.0
- install -s -o bin -g bin -m 755 ${AOUT} ${DESTDIR}${DEST}
- install -c -o bin -g bin -m 444 dbx.0 ${DESTDIR}/usr/share/man/cat1
-
-#
-# Create a tar file called "tape" containing relevant files.
-#
-
-TAPE = f tape
-
-tape:
- @tar c${TAPE} Makefile History READ_ME ${SRC} \
- makedefs.c mkdate.c tests pc0mods dbx.1 newdbx.1 dbxstab.5
-
-#
-# without tests subdirectory
-#
-srconlytape:
- @tar c${TAPE} Makefile History READ_ME ${SRC} \
- makedefs.c mkdate.c dbx.1 newdbx.1 dbxstab.5
-
-#
-# Header dependencies are purposely incomplete since header files
-# are "written" every time the accompanying source file changes even if
-# the resulting contents of the header don't change. The alternative is
-# to force a "makedefs" to be invoked for every header file each time dbx
-# is made.
-#
-# Also, there should be a dependency of scanner.o and keywords.o on y.tab.h
-# but misfortunately silly make does a "makedefs y.tab.c y.tab.h" which
-# destroys y.tab.h.
-#