comparison src/Makefile.in @ 21923:58f3869d37d5

(TAGS-LISP): New target. (${lispsource}TAGS): Target deleted. (tags): Depend on TAGS-LISP. (TAGS): Generate the TAGS file in the build dir. (lisptagsfiles): Variable deleted. (shortnamesdir, cppdir): Vars deleted. (shortnames): Target deleted. (temacs): Don't use $(SHORT). (SHORT): Var deleted.
author Richard M. Stallman <rms@gnu.org>
date Sun, 03 May 1998 08:24:10 +0000
parents fc97ab2c8e64
children 615e861e4bb6
comparison
equal deleted inserted replaced
21922:714591991067 21923:58f3869d37d5
35 dot = . 35 dot = .
36 dotdot = ${dot}${dot} 36 dotdot = ${dot}${dot}
37 lispsource = ${srcdir}/$(dot)$(dot)/lisp/ 37 lispsource = ${srcdir}/$(dot)$(dot)/lisp/
38 libsrc = $(dot)$(dot)/lib-src/ 38 libsrc = $(dot)$(dot)/lib-src/
39 etc = $(dot)$(dot)/etc/ 39 etc = $(dot)$(dot)/etc/
40 shortnamesdir = $(dot)$(dot)/shortnames/
41 cppdir = $(dot)$(dot)/cpp/
42 oldXMenudir = $(dot)$(dot)/oldXMenu/ 40 oldXMenudir = $(dot)$(dot)/oldXMenu/
43 lwlibdir = $(dot)$(dot)/lwlib/ 41 lwlibdir = $(dot)$(dot)/lwlib/
44 42
45 # Configuration files for .o files to depend on. 43 # Configuration files for .o files to depend on.
46 M_FILE = ${srcdir}/@machfile@ 44 M_FILE = ${srcdir}/@machfile@
251 MYCPPFLAG= -Blocal 249 MYCPPFLAG= -Blocal
252 /* LOCALCPP is the local one or nothing. 250 /* LOCALCPP is the local one or nothing.
253 CPP is the local one or the standard one. */ 251 CPP is the local one or the standard one. */
254 LOCALCPP= localcpp 252 LOCALCPP= localcpp
255 #endif /* ! defined (LONGNAMEBBBARFOOX) */ 253 #endif /* ! defined (LONGNAMEBBBARFOOX) */
256
257 #ifdef SHORTNAMES
258 SHORT= shortnames
259 #endif
260 254
261 #ifdef USE_X_TOOLKIT 255 #ifdef USE_X_TOOLKIT
262 #define USE_@X_TOOLKIT_TYPE@ 256 #define USE_@X_TOOLKIT_TYPE@
263 TOOLKIT_DEFINES = -DUSE_@X_TOOLKIT_TYPE@ 257 TOOLKIT_DEFINES = -DUSE_@X_TOOLKIT_TYPE@
264 #else 258 #else
843 /* Some systems define this to cause parallel Make-ing. */ 837 /* Some systems define this to cause parallel Make-ing. */
844 #ifndef MAKE_PARALLEL 838 #ifndef MAKE_PARALLEL
845 #define MAKE_PARALLEL 839 #define MAKE_PARALLEL
846 #endif 840 #endif
847 841
848 temacs: MAKE_PARALLEL $(LOCALCPP) $(SHORT) $(STARTFILES) stamp-oldxmenu ${obj} ${otherobj} OBJECTS_SYSTEM OBJECTS_MACHINE prefix-args 842 temacs: MAKE_PARALLEL $(LOCALCPP) $(STARTFILES) stamp-oldxmenu ${obj} ${otherobj} OBJECTS_SYSTEM OBJECTS_MACHINE prefix-args
849 $(LD) YMF_PASS_LDFLAGS (${STARTFLAGS} ${ALL_LDFLAGS}) \ 843 $(LD) YMF_PASS_LDFLAGS (${STARTFLAGS} ${ALL_LDFLAGS}) \
850 -o temacs ${STARTFILES} ${obj} ${otherobj} \ 844 -o temacs ${STARTFILES} ${obj} ${otherobj} \
851 OBJECTS_SYSTEM OBJECTS_MACHINE ${LIBES} 845 OBJECTS_SYSTEM OBJECTS_MACHINE ${LIBES}
852 846
853 /* We don't use ALL_LDFLAGS because LD_SWITCH_SYSTEM and LD_SWITCH_MACHINE 847 /* We don't use ALL_LDFLAGS because LD_SWITCH_SYSTEM and LD_SWITCH_MACHINE
872 -cp /lib/c2 localc2 866 -cp /lib/c2 localc2
873 cp /bin/as localas 867 cp /bin/as localas
874 #else /* ! defined (NEED_CPP) */ 868 #else /* ! defined (NEED_CPP) */
875 CPP = $(CC) -E 869 CPP = $(CC) -E
876 #endif /* ! defined (NEED_CPP) */ 870 #endif /* ! defined (NEED_CPP) */
877
878 #ifdef SHORTNAMES
879 shortnames:
880 cd ${shortnamesdir}; ${MAKE} ${MFLAGS}
881 #endif
882 871
883 /* Don't lose if this was not defined. */ 872 /* Don't lose if this was not defined. */
884 #ifndef OLDXMENU_OPTIONS 873 #ifndef OLDXMENU_OPTIONS
885 #define OLDXMENU_OPTIONS 874 #define OLDXMENU_OPTIONS
886 #endif 875 #endif
1166 1155
1167 relock: 1156 relock:
1168 chmod -w $(SOURCES) 1157 chmod -w $(SOURCES)
1169 chmod +w paths.h 1158 chmod +w paths.h
1170 1159
1171 /* Arrange to make a tags table in ../lisp, and another in this dir 1160 /* Arrange to make a tags table TAGS-LISP for ../lisp,
1172 which includes ../lisp/TAGS by reference. */ 1161 plus TAGS for the C files, which includes ../lisp/TAGS by reference. */
1173 ctagsfiles = [a-zA-Z]*.[hc] 1162 ctagsfiles = [a-zA-Z]*.[hc]
1174 lisptagsfiles = ../lisp/[a-zA-Z]*.el
1175 TAGS: $(srcdir)/$(ctagsfiles) 1163 TAGS: $(srcdir)/$(ctagsfiles)
1176 export DIR; DIR=`pwd`; cd ${srcdir}; \ 1164 ../lib-src/etags --include=TAGS-LISP \
1177 $$DIR/../lib-src/etags --include=../lisp/TAGS \
1178 --regex='/[ ]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/' $(ctagsfiles) 1165 --regex='/[ ]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/' $(ctagsfiles)
1179 ${lispsource}TAGS: ${lispsource}$(lisptagsfiles) 1166 frc:
1180 export DIR; DIR=`pwd`; cd ${lispsource}; \ 1167 TAGS-LISP: frc
1181 $(MAKE) TAGS ETAGS=$$DIR/../lib-src/etags 1168 $(MAKE) -f ${lispsource}Makefile TAGS-LISP ETAGS=../lib-src/etags \
1182 tags: TAGS ${lispsource}TAGS 1169 lispsource=${lispsource}
1170 tags: TAGS TAGS-LISP
1183 .PHONY: tags 1171 .PHONY: tags