source: trunk/athena/bin/dash/Imakefile @ 6837

Revision 6837, 1.4 KB checked in by cfields, 31 years ago (diff)
Clean up menu installation.
Line 
1#define XSUBDIRS src
2
3DASH_MENUS = ${ATHLIBDIR}/Dash.menus
4DASH_FALLBACK = ${ATHLIBDIR}/Dash.fallback
5
6#define LDEF src/Xj_local.defs
7
8Makefiles::
9        -@if [ -f LDEF ]; then \
10        echo "  $(RM) LDEF.bak; mv LDEF LDEF.bak"; \
11        $(RM) LDEF.bak; mv LDEF LDEF.bak; \
12        else exit 0; fi
13        @echo "/* This file automatically generated." > LDEF
14        @echo " * See ../Imakefile for details." >> LDEF
15        @echo " */" >> LDEF
16        @echo MAN_DIR = ${ATHMANDIR} >> LDEF
17        @echo DASH_BIN_DIR = ${ATHBINDIR} >> LDEF
18        @echo DASH_XBM_DIR = ${ATHXBITDIR} >> LDEF
19        @echo DASH_APP_DIR = ${ATHXAPPDIR} >> LDEF
20        @echo CONSOLE_BIN_DIR = ${ATHRETCDIR} >> LDEF
21        @echo CONSOLE_XBM_DIR = ${ATHRETCDIR}/login/bitmaps >> LDEF
22        @echo CONSOLE_APP_DIR = ${ATHRETCDIR}/login >> LDEF
23        @echo XJ_XBM_DIR = ${ATHXBITDIR} >> LDEF
24        @echo XJ_APP_DIR = ${ATHXAPPDIR} >> LDEF
25        @echo XJ_LIB_DIR = ${ATHLIBDIR} >> LDEF
26        @echo XJ_INC_DIR = ${ATHINCDIR} >> LDEF
27        @echo DASH_MENUS = ${DASH_MENUS} >> LDEF
28        @echo DASH_FALLBACK = ${DASH_FALLBACK} >> LDEF
29
30install::
31        . $(ATHVERS); \
32        $(INSTALL) -m 0444 /afs/athena.mit.edu/system/config/dash/`machtype`/Dash.menus.$$ATHMAJV$$ATHMINV $(DESTDIR)$(DASH_FALLBACK); \
33        $(RM) $(DESTDIR)$(DASH_MENUS); \
34        ln -s /afs/athena.mit.edu/system/config/dash/`machtype`/Dash.menus.$$ATHMAJV$$ATHMINV $(DESTDIR)$(DASH_MENUS); \
35        $(RM) $(DESTDIR)$(DASH_MENUS).cmp; \
36        ln -s /afs/athena.mit.edu/system/config/dash/`machtype`/Dash.menus.$$ATHMAJV$$ATHMINV.cmp $(DESTDIR)$(DASH_MENUS).cmp
Note: See TracBrowser for help on using the repository browser.