Makefile: various consistency matters

Using defined variables ${RM} for common tools
error handling
ensuring default target (is not install)
This commit is contained in:
Darryl L. Miles 2024-10-16 10:28:42 +01:00 committed by R. Timothy Edwards
parent 8b7e0aaec6
commit 3aebbbd038
3 changed files with 6 additions and 4 deletions

View File

@ -11,6 +11,8 @@ SCMSRC = default.scm box.scm label.scm draw.scm drc.scm \
stack.scm layout.scm prs.scm help.scm gate.scm \
sel.scm
all:
include ${MAGICDIR}/defs.mak
INST_SCMSRC = ${SCMSRC:%=$(DESTDIR)${INSTALL_SCMDIR}/%}

View File

@ -27,7 +27,7 @@ DEP_FILES = $(addprefix .deps/,$(SRCS:.c=.P))\
tr ' ' '\012' < .deps/$(*F).pp \
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
>> .deps/$(*F).P; \
rm .deps/$(*F).pp
${RM} .deps/$(*F).pp
clean:
${RM} *.o

View File

@ -98,11 +98,11 @@ $(HCIFin):
$(HCIFout):
$(SCIFin):
$(SCIFout):
cd cif_template; ${MAKE} clean; ${MAKE};
cd cif_template && ${MAKE} clean && ${MAKE}
$(DESTDIR)${INSTALL_SYSDIR}/%: %
cp $* $(DESTDIR)${INSTALL_SYSDIR}/$*
clean:;
-rm -f *.tech *.tech27
cd cif_template && ${MAKE} clean;
-$(RM) *.tech *.tech27
cd cif_template && ${MAKE} clean