mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 01:43:00 +02:00
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:
committed by
R. Timothy Edwards
parent
412d0570e2
commit
3ca0b616c0
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user