Makefile: toplevel 'make techs' target to process scmos during build
Previously it would only build the 'scmos' subdir when the 'make install' target is running, which is done sudo. This would result in a number of files in scmos/cif_template/objs to be owned by 'root'. Renamed TECH to TECHS which is inline with the other caregories MODULES and LIBS.
This commit is contained in:
parent
412d0570e2
commit
3ca0b616c0
12
Makefile
12
Makefile
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
MAGICDIR = .
|
||||
PROGRAMS = magic
|
||||
TECH = scmos
|
||||
TECHS = scmos
|
||||
LIBRARIES = database utils extflat
|
||||
MODULES = bplane cmwind commands database dbwind debug drc extflat \
|
||||
extract graphics netmenu plow resis select sim textio tiles \
|
||||
|
|
@ -14,11 +14,11 @@ MODULES = bplane cmwind commands database dbwind debug drc extflat \
|
|||
VERSION := $(shell cat ${MAGICDIR}/VERSION)
|
||||
|
||||
MAKEFLAGS =
|
||||
INSTALL_CAD_DIRS = windows doc ${TECH}
|
||||
INSTALL_CAD_DIRS = windows doc ${TECHS}
|
||||
|
||||
-include defs.mak
|
||||
|
||||
all: $(ALL_TARGET)
|
||||
all: $(ALL_TARGET) techs
|
||||
|
||||
standard:
|
||||
@echo --- errors and warnings logged in file make.log
|
||||
|
|
@ -81,6 +81,12 @@ $(addsuffix /Depend, ${SUBDIRS_FILTERED}): database/database.h
|
|||
.PHONY: depend
|
||||
depend: defs.mak $(addsuffix /Depend, ${SUBDIRS_FILTERED})
|
||||
|
||||
.PHONY: techs
|
||||
techs: depend
|
||||
@echo --- making techs
|
||||
for dir in ${TECHS}; do \
|
||||
(cd $$dir && ${MAKE} all) || exit 1; done
|
||||
|
||||
install: $(INSTALL_TARGET)
|
||||
|
||||
install-magic:
|
||||
|
|
|
|||
Loading…
Reference in New Issue