FreeCalypso > hg > themwi-nanp
annotate Makefile @ 15:a24f0794ab4d default tip
INSTALL: document the new way
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Tue, 21 May 2024 00:29:21 +0000 |
| parents | 78319ed870dc |
| children |
| rev | line source |
|---|---|
|
11
3d6cfb615d90
add make install hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
10
diff
changeset
|
1 SUBDIR= include libnumdb libnumutil utils |
|
14
78319ed870dc
convert to new ThemWi configure and build system
Mychaela Falconia <falcon@freecalypso.org>
parents:
11
diff
changeset
|
2 DESTDIR= |
| 10 | 3 |
| 4 all: ${SUBDIR} | |
| 5 | |
| 6 utils: libnumdb libnumutil | |
| 7 | |
|
14
78319ed870dc
convert to new ThemWi configure and build system
Mychaela Falconia <falcon@freecalypso.org>
parents:
11
diff
changeset
|
8 ${SUBDIR}: FRC config.defs |
| 10 | 9 cd $@; ${MAKE} ${MFLAGS} |
| 10 | |
|
14
78319ed870dc
convert to new ThemWi configure and build system
Mychaela Falconia <falcon@freecalypso.org>
parents:
11
diff
changeset
|
11 config.defs: |
|
78319ed870dc
convert to new ThemWi configure and build system
Mychaela Falconia <falcon@freecalypso.org>
parents:
11
diff
changeset
|
12 @echo 'You must run ./configure before make' |
|
78319ed870dc
convert to new ThemWi configure and build system
Mychaela Falconia <falcon@freecalypso.org>
parents:
11
diff
changeset
|
13 @false |
|
78319ed870dc
convert to new ThemWi configure and build system
Mychaela Falconia <falcon@freecalypso.org>
parents:
11
diff
changeset
|
14 |
|
11
3d6cfb615d90
add make install hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
10
diff
changeset
|
15 install: FRC |
|
3d6cfb615d90
add make install hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
10
diff
changeset
|
16 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \ |
|
14
78319ed870dc
convert to new ThemWi configure and build system
Mychaela Falconia <falcon@freecalypso.org>
parents:
11
diff
changeset
|
17 DESTDIR=${DESTDIR} install); done |
|
11
3d6cfb615d90
add make install hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
10
diff
changeset
|
18 |
| 10 | 19 clean: FRC |
| 20 rm -f a.out core errs | |
| 21 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done | |
| 22 | |
| 23 FRC: |
