blob: 1a1c2c7a4b659ef9b1987013c8590a7f6a279dfd [file] [log] [blame]
Tim Edwards55f4d0e2020-07-05 15:41:02 -04001#---------------------------------------------------
2# Makefile for efabless project open_pdks
3# Tim Edwards, 11/21/2016
4# Updated 10/19/2018 for use independently of the
5# efabless /ef/ tree filesystem setup.
6# Updated 5/5/2020 for use with the 2-stage install
7#---------------------------------------------------
8#
9# Typical usage:
10#
11# make
12# generates the tech files from source masters.
13#
Tim Edwards7cbaaba2020-08-05 12:19:18 -040014# make install
Tim Edwards55f4d0e2020-07-05 15:41:02 -040015#
Tim Edwards7cbaaba2020-08-05 12:19:18 -040016# installs the tech files. If the configuration
17# script has been given the "--with-<PDK>-dist-path="
18# option, then tech files are installed in the path
19# (such as a git repository) that is used for
20# distribution of software across a system. Otherwise,
21# files are installed in the local path specified by
22# the configuration option "--with-<PDK>-local-path=".
Tim Edwards55f4d0e2020-07-05 15:41:02 -040023#
24# make clean
25#
26# clean up all files generated by 'make'
27#
Tim Edwards7cbaaba2020-08-05 12:19:18 -040028# make veryclean
29#
30# clean up all files generated by 'make' and remove
31# all log files.
32#
Tim Edwards55f4d0e2020-07-05 15:41:02 -040033#---------------------------------------------------
34#
35# The following definitions are tied to the contents
36# of this repository and should not be changed.
37
38TECHS = sky130
39
40#---------------------------------------------------
41
42all: ${TECHS}
43 for tech in ${TECHS}; do \
44 ${MAKE} tech_$$tech; done
45
46#---------------------------------------------------
47
48tech_sky130:
49 (cd sky130 && ${MAKE} all)
50
51#---------------------------------------------------
52
Tim Edwards7cbaaba2020-08-05 12:19:18 -040053install-sky130: sky130
54 (cd sky130 && ${MAKE} install)
Tim Edwards55f4d0e2020-07-05 15:41:02 -040055
56clean-sky130:
57 (cd sky130 && ${MAKE} clean)
58
59veryclean-sky130:
60 (cd sky130 && ${MAKE} veryclean)
61
62#---------------------------------------------------
63
Tim Edwards7cbaaba2020-08-05 12:19:18 -040064install: ${TECHS}
Tim Edwards55f4d0e2020-07-05 15:41:02 -040065 for tech in ${TECHS}; do \
Tim Edwards106e38b2020-09-20 13:07:54 -040066 ${MAKE} install-$${tech}; done
Tim Edwards55f4d0e2020-07-05 15:41:02 -040067
Tim Edwards7cbaaba2020-08-05 12:19:18 -040068clean: ${TECHS}
Tim Edwards55f4d0e2020-07-05 15:41:02 -040069 for tech in ${TECHS}; do \
70 ${MAKE} clean-$${tech}; done
71
Tim Edwards7cbaaba2020-08-05 12:19:18 -040072veryclean: ${TECHS}
Tim Edwards55f4d0e2020-07-05 15:41:02 -040073 for tech in ${TECHS}; do \
74 ${MAKE} veryclean-$${tech}; done
Tim Edwards9a8249b2020-07-06 08:23:02 -040075
Tim Edwards7cbaaba2020-08-05 12:19:18 -040076distclean: ${TECHS}
Tim Edwards9a8249b2020-07-06 08:23:02 -040077 for tech in ${TECHS}; do \
78 ${MAKE} veryclean-$${tech}; done