Make.proto
changeset 0 da028ec9cc07
equal deleted inserted replaced
-1:000000000000 0:da028ec9cc07
       
     1 # $Header$
       
     2 #
       
     3 # automagically generated from the projectDefinition: jv_statascripteditor.
       
     4 #
       
     5 # -------------- no need to change anything below ----------
       
     6 #
       
     7 # This makefile generates some standalone demo applications
       
     8 #
       
     9 #    make
       
    10 #       generates statascripteditor
       
    11 #
       
    12 
       
    13 TOP=../../stx
       
    14 INCLUDE_TOP=$(TOP)/..
       
    15 
       
    16 # set to a dummy file name (like FORCE=@@@FORCE-BUILD@@@) to force the build of prereq packages
       
    17 FORCE=
       
    18 .PHONY: $(FORCE)
       
    19 
       
    20 PACKAGE=jv:statascripteditor
       
    21 SUBDIRS=
       
    22 SUPPRESS_LOCAL_ABBREVS="yes"
       
    23 NOAUTOLOAD=1
       
    24 NOSUBAUTOLOAD=1
       
    25 
       
    26 LOCALINCLUDES= -I$(INCLUDE_TOP)/stx/libbasic -I$(INCLUDE_TOP)/stx/libbasic2 -I$(INCLUDE_TOP)/stx/libtool -I$(INCLUDE_TOP)/stx/libview2 -I$(INCLUDE_TOP)/stx/libwidg
       
    27 LOCALDEFINES=
       
    28 GLOBALDEFINES=
       
    29 MAIN_DEFINES=-DIGNORE_IMAGE -DNO_DISPLAY
       
    30 
       
    31 RCSSOURCES=Make.proto *.st
       
    32 LINKSOURCES=Make.proto *.st
       
    33 
       
    34 DELIVERBINARIES=
       
    35 
       
    36 APPNAME=libjv_statascripteditor
       
    37 LIBNAME=libjv_statascripteditor
       
    38 STCLOCALOPT='-package=$(PACKAGE)' -I. -headerDir=. $(LOCALINCLUDES) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) -headerDir=.  -varPrefix=$(LIBNAME)
       
    39 
       
    40 
       
    41 # ********** OPTIONAL: MODIFY the next line ***
       
    42 # additional C-libraries that should be pre-linked with the class-objects
       
    43 LD_OBJ_LIBS=
       
    44 LOCAL_SHARED_LIBS=
       
    45 
       
    46 
       
    47 # ********** OPTIONAL: MODIFY the next line ***
       
    48 # additional C targets or libraries should be added below
       
    49 LOCAL_EXTRA_TARGETS=
       
    50 
       
    51 OBJS= $(COMMON_OBJS) $(UNIX_OBJS)
       
    52 
       
    53 
       
    54 
       
    55 
       
    56 
       
    57 LIBLIST = $(REQUIRED_LIBS)
       
    58 
       
    59 # required libs:
       
    60 #
       
    61 
       
    62 REQUIRED_LIBS= libstx_libbasic \
       
    63  libstx_goodies_refactoryBrowser_parser \
       
    64  libstx_libbasic2 \
       
    65  libstx_libcomp \
       
    66  libstx_libview \
       
    67  libstx_libbasic3 \
       
    68  libstx_libui \
       
    69  libstx_libview2 \
       
    70  libstx_libwidg \
       
    71  libstx_libwidg2 \
       
    72  libstx_libwidg3 \
       
    73  libstx_libtool \
       
    74 
       
    75 
       
    76 REQUIRED_LIBOBJS= $(TOP)/libbasic/libstx_libbasic$(O_EXT) \
       
    77  $(TOP)/goodies/refactoryBrowser/parser/libstx_goodies_refactoryBrowser_parser$(O_EXT) \
       
    78  $(TOP)/libbasic2/libstx_libbasic2$(O_EXT) \
       
    79  $(TOP)/libcomp/libstx_libcomp$(O_EXT) \
       
    80  $(TOP)/libview/libstx_libview$(O_EXT) \
       
    81  $(TOP)/libbasic3/libstx_libbasic3$(O_EXT) \
       
    82  $(TOP)/libui/libstx_libui$(O_EXT) \
       
    83  $(TOP)/libview2/libstx_libview2$(O_EXT) \
       
    84  $(TOP)/libwidg/libstx_libwidg$(O_EXT) \
       
    85  $(TOP)/libwidg2/libstx_libwidg2$(O_EXT) \
       
    86  $(TOP)/libwidg3/libstx_libwidg3$(O_EXT) \
       
    87  $(TOP)/libtool/libstx_libtool$(O_EXT) \
       
    88 
       
    89 
       
    90 REQUIRED_LINK_LIBOBJS= libstx_libbasic$(O_EXT) \
       
    91  libstx_goodies_refactoryBrowser_parser$(O_EXT) \
       
    92  libstx_libbasic2$(O_EXT) \
       
    93  libstx_libcomp$(O_EXT) \
       
    94  libstx_libview$(O_EXT) \
       
    95  libstx_libbasic3$(O_EXT) \
       
    96  libstx_libui$(O_EXT) \
       
    97  libstx_libview2$(O_EXT) \
       
    98  libstx_libwidg$(O_EXT) \
       
    99  libstx_libwidg2$(O_EXT) \
       
   100  libstx_libwidg3$(O_EXT) \
       
   101  libstx_libtool$(O_EXT) \
       
   102 
       
   103 
       
   104 REQUIRED_SUPPORT_DIRS=RESOURCEFILES
       
   105 
       
   106 SUBPROJECT_LIBS=
       
   107 
       
   108 
       
   109 target: ALL
       
   110 
       
   111 all::   prereq ALL_NP
       
   112 
       
   113 # like ALL, but not prereqs
       
   114 ALL_NP:: exe $(SUBPROJECT_LIBS) $(REQUIRED_SUPPORT_DIRS) $(SETUP_RULE)
       
   115 
       
   116 exe:    statascripteditor registerApplication
       
   117 
       
   118 statascripteditor: $(APP_DIRS_TO_MAKE) $(APP_LIBOBJS) $(REQUIRED_LIBOBJS) $(OBJS)
       
   119 	$(MAKE) link_statascripteditor
       
   120 
       
   121 
       
   122 link_statascripteditor:
       
   123 	$(MAKE) GUI_APPLICATION \
       
   124 		    TARGET=statascripteditor \
       
   125 		    APPLICATION_CLASSES="$(COMMON_CLASSES) $(UNIX_CLASSES)" \
       
   126 		    APPLICATION_OBJS="$(OBJS)" \
       
   127 		    APPLICATION_LIBLIST="$(REQUIRED_LIBS)" \
       
   128 		    APPLICATION_LIBOBJS="$(REQUIRED_LIBOBJS)" \
       
   129 		    APPLICATION_LINK_LIBOBJS="$(REQUIRED_LINK_LIBOBJS)" \
       
   130 		    STARTUP_CLASS="StataScriptEditorMain" \
       
   131 		    STARTUP_SELECTOR="start" \
       
   132 		    MAIN_DEFINES="-DIGNORE_IMAGE -DNO_DISPLAY"
       
   133 
       
   134 # build all mandatory prerequisite packages (containing superclasses) for this package
       
   135 prereq:
       
   136 	$(MAKE) FORCE=@@@FORCE-BUILD@@@ $(REQUIRED_LIBOBJS)
       
   137 
       
   138 #
       
   139 # a self installable delivery
       
   140 #
       
   141 # backward compatible fallback
       
   142 setup::
       
   143 	@if test -d autopackage; then \
       
   144 	    makepackage; \
       
   145 	else \
       
   146 	    echo "Error: make setup not yet available in this unix"; \
       
   147 	    exit 1; \
       
   148 	fi
       
   149 
       
   150 #
       
   151 # for linux, this uses autopackage
       
   152 #
       
   153 setup_linux:
       
   154 	@if test -d autopackage; then \
       
   155 	    makepackage; \
       
   156 	else \
       
   157 	    echo "Error: missing autopackage directory"; \
       
   158 	    exit 1; \
       
   159 	fi
       
   160 
       
   161 #
       
   162 # for mac, a dmg is generated
       
   163 #
       
   164 setup_macosx:   "Stata Script Editor_dmg"
       
   165 	-rm "Stata Script Editor.dmg"
       
   166 	hdiutil create -fs HFSX -layout SPUD "Stata Script Editor.dmg" -srcfolder "Stata Script Editor_dmg" -format UDZO -volname "Stata Script Editor" -quiet
       
   167 
       
   168 app: "Stata Script Editor_dmg"
       
   169 
       
   170 "Stata Script Editor_dmg": $(SUBPROJECT_LIBS) $(REQUIRED_SUPPORT_DIRS) 
       
   171 	@-rm -rf "Stata Script Editor_dmg"
       
   172 	@-mkdir "Stata Script Editor_dmg"
       
   173 	@-mkdir "Stata Script Editor_dmg/Stata Script Editor.app"
       
   174 	@-mkdir "Stata Script Editor_dmg/Stata Script Editor.app/Contents"
       
   175 	@-mkdir "Stata Script Editor_dmg/Stata Script Editor.app/Contents/MacOS"
       
   176 	cp "statascripteditor" "Stata Script Editor_dmg/Stata Script Editor.app/Contents/MacOS/Stata Script Editor"
       
   177 	@-mkdir "Stata Script Editor_dmg/Stata Script Editor.app/Contents/MacOS/."
       
   178 	-cp -r *.so "Stata Script Editor_dmg/Stata Script Editor.app/Contents/MacOS/."
       
   179 	-cp -r symbols.stc "Stata Script Editor_dmg/Stata Script Editor.app/Contents/MacOS/."
       
   180 	-cp -r *.stx "Stata Script Editor_dmg/Stata Script Editor.app/Contents/MacOS/."
       
   181 	-cp -r *.rc "Stata Script Editor_dmg/Stata Script Editor.app/Contents/MacOS/."
       
   182 	-cp -r resources "Stata Script Editor_dmg/Stata Script Editor.app/Contents/MacOS/."
       
   183 
       
   184 
       
   185 SOURCEFILES: statascripteditor_SOURCES \
       
   186 	stx_SOURCES
       
   187 
       
   188 
       
   189 
       
   190 
       
   191 RESOURCEFILES: statascripteditor_RESOURCES statascripteditor_BITMAPS  \
       
   192 	stx_RESOURCES stx_STYLES stx_BITMAPS
       
   193 
       
   194 
       
   195 statascripteditor_RESOURCES: 
       
   196 	mkdir -p resources/jv/statascripteditor
       
   197 	-cp ../resources/*.rs ../resources/*.style resources/jv/statascripteditor/..
       
   198 
       
   199 statascripteditor_BITMAPS: 
       
   200 	mkdir -p resources/jv/statascripteditor/bitmaps
       
   201 	-cp *.ico *.gif *.png resources/jv/statascripteditor/bitmaps
       
   202 
       
   203 
       
   204 
       
   205 stx_RESOURCES: \
       
   206 	keyboard.rc \
       
   207 	keyboardMacros.rc \
       
   208 	display.rc \
       
   209 	libbasic_RESOURCES \
       
   210 	libview_RESOURCES \
       
   211 	libtool_RESOURCES  \
       
   212 	libtool2_RESOURCES
       
   213 
       
   214 keyboard.rc: $(TOP)/projects/smalltalk/keyboard.rc
       
   215 	cp $(TOP)/projects/smalltalk/keyboard.rc .
       
   216 
       
   217 keyboardMacros.rc: $(TOP)/projects/smalltalk/keyboardMacros.rc
       
   218 	cp $(TOP)/projects/smalltalk/keyboardMacros.rc .
       
   219 
       
   220 display.rc: $(TOP)/projects/smalltalk/display.rc
       
   221 	cp $(TOP)/projects/smalltalk/display.rc .
       
   222 
       
   223 stx_STYLES: 
       
   224 	mkdir -p resources/stx/libview
       
   225 	mkdir -p resources/stx/libview/styles
       
   226 	cp $(TOP)/libview/styles/*.common resources/stx/libview/styles
       
   227 	cp $(TOP)/libview/styles/*.style resources/stx/libview/styles
       
   228 
       
   229 stx_BITMAPS: \
       
   230 	libwidg_BITMAPS
       
   231 
       
   232 libwidg_BITMAPS: 
       
   233 	mkdir -p resources/stx/libwidg/bitmaps
       
   234 	-cp $(TOP)/libwidg/bitmaps/*.* resources/stx/libwidg/bitmaps
       
   235 
       
   236 libbasic_RESOURCES: 
       
   237 	mkdir -p resources/stx/libbasic
       
   238 	-cp $(TOP)/libbasic/resources/*.* resources/stx/libbasic
       
   239 
       
   240 libtool_RESOURCES: 
       
   241 	mkdir -p resources/stx/libtool
       
   242 	-cp $(TOP)/libtool/resources/*.* resources/stx/libtool
       
   243 
       
   244 libtool2_RESOURCES: 
       
   245 	mkdir -p resources/stx/libtool2
       
   246 	-cp $(TOP)/libtool2/resources/*.* resources/stx/libtool2
       
   247 
       
   248 libview_RESOURCES: 
       
   249 	mkdir -p resources/stx/libview
       
   250 	-cp $(TOP)/libview/resources/*.* resources/stx/libview
       
   251 
       
   252 libview2_RESOURCES: 
       
   253 	mkdir -p resources/stx/libview2
       
   254 	-cp $(TOP)/libview2/resources/*.* resources/stx/libview2
       
   255 
       
   256 bitmaps:
       
   257 	mkdir -p bitmaps
       
   258 
       
   259 doc:
       
   260 	mkdir -p doc
       
   261 
       
   262 
       
   263 
       
   264 libstx_libbasic.so: $(TOP)/libbasic/libstx_libbasic.so
       
   265 	ln -sf $(TOP)/libbasic/libstx_libbasic.so .
       
   266 
       
   267 $(TOP)/libbasic/libstx_libbasic.so: $(TOP)/libbasic/makefile $(FORCE)
       
   268 	@if [ -f "$(TOP)/libbasic/.NOSOURCE" ]; then \
       
   269 	    echo "skip make in $(TOP)/libbasic (no source)"; \
       
   270 	else \
       
   271 	    cd $(TOP)/libbasic && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES) "; \
       
   272 	fi
       
   273 
       
   274 $(TOP)/libbasic/makefile: $(TOP)/libbasic/Make.proto
       
   275 	$(TOP)/rules/stmkmf --cd $(TOP)/libbasic
       
   276 
       
   277 libstx_goodies_refactoryBrowser_parser.so: $(TOP)/goodies/refactoryBrowser/parser/libstx_goodies_refactoryBrowser_parser.so
       
   278 	ln -sf $(TOP)/goodies/refactoryBrowser/parser/libstx_goodies_refactoryBrowser_parser.so .
       
   279 
       
   280 $(TOP)/goodies/refactoryBrowser/parser/libstx_goodies_refactoryBrowser_parser.so: $(TOP)/goodies/refactoryBrowser/parser/makefile $(FORCE)
       
   281 	@if [ -f "$(TOP)/goodies/refactoryBrowser/parser/.NOSOURCE" ]; then \
       
   282 	    echo "skip make in $(TOP)/goodies/refactoryBrowser/parser (no source)"; \
       
   283 	else \
       
   284 	    cd $(TOP)/goodies/refactoryBrowser/parser && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES) "; \
       
   285 	fi
       
   286 
       
   287 $(TOP)/goodies/refactoryBrowser/parser/makefile: $(TOP)/goodies/refactoryBrowser/parser/Make.proto
       
   288 	$(TOP)/rules/stmkmf --cd $(TOP)/goodies/refactoryBrowser/parser
       
   289 
       
   290 libstx_libbasic2.so: $(TOP)/libbasic2/libstx_libbasic2.so
       
   291 	ln -sf $(TOP)/libbasic2/libstx_libbasic2.so .
       
   292 
       
   293 $(TOP)/libbasic2/libstx_libbasic2.so: $(TOP)/libbasic2/makefile $(FORCE)
       
   294 	@if [ -f "$(TOP)/libbasic2/.NOSOURCE" ]; then \
       
   295 	    echo "skip make in $(TOP)/libbasic2 (no source)"; \
       
   296 	else \
       
   297 	    cd $(TOP)/libbasic2 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES) "; \
       
   298 	fi
       
   299 
       
   300 $(TOP)/libbasic2/makefile: $(TOP)/libbasic2/Make.proto
       
   301 	$(TOP)/rules/stmkmf --cd $(TOP)/libbasic2
       
   302 
       
   303 libstx_libcomp.so: $(TOP)/libcomp/libstx_libcomp.so
       
   304 	ln -sf $(TOP)/libcomp/libstx_libcomp.so .
       
   305 
       
   306 $(TOP)/libcomp/libstx_libcomp.so: $(TOP)/libcomp/makefile $(FORCE)
       
   307 	@if [ -f "$(TOP)/libcomp/.NOSOURCE" ]; then \
       
   308 	    echo "skip make in $(TOP)/libcomp (no source)"; \
       
   309 	else \
       
   310 	    cd $(TOP)/libcomp && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES) "; \
       
   311 	fi
       
   312 
       
   313 $(TOP)/libcomp/makefile: $(TOP)/libcomp/Make.proto
       
   314 	$(TOP)/rules/stmkmf --cd $(TOP)/libcomp
       
   315 
       
   316 libstx_libview.so: $(TOP)/libview/libstx_libview.so
       
   317 	ln -sf $(TOP)/libview/libstx_libview.so .
       
   318 
       
   319 $(TOP)/libview/libstx_libview.so: $(TOP)/libview/makefile $(FORCE)
       
   320 	@if [ -f "$(TOP)/libview/.NOSOURCE" ]; then \
       
   321 	    echo "skip make in $(TOP)/libview (no source)"; \
       
   322 	else \
       
   323 	    cd $(TOP)/libview && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES) "; \
       
   324 	fi
       
   325 
       
   326 $(TOP)/libview/makefile: $(TOP)/libview/Make.proto
       
   327 	$(TOP)/rules/stmkmf --cd $(TOP)/libview
       
   328 
       
   329 libstx_libbasic3.so: $(TOP)/libbasic3/libstx_libbasic3.so
       
   330 	ln -sf $(TOP)/libbasic3/libstx_libbasic3.so .
       
   331 
       
   332 $(TOP)/libbasic3/libstx_libbasic3.so: $(TOP)/libbasic3/makefile $(FORCE)
       
   333 	@if [ -f "$(TOP)/libbasic3/.NOSOURCE" ]; then \
       
   334 	    echo "skip make in $(TOP)/libbasic3 (no source)"; \
       
   335 	else \
       
   336 	    cd $(TOP)/libbasic3 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES) "; \
       
   337 	fi
       
   338 
       
   339 $(TOP)/libbasic3/makefile: $(TOP)/libbasic3/Make.proto
       
   340 	$(TOP)/rules/stmkmf --cd $(TOP)/libbasic3
       
   341 
       
   342 libstx_libui.so: $(TOP)/libui/libstx_libui.so
       
   343 	ln -sf $(TOP)/libui/libstx_libui.so .
       
   344 
       
   345 $(TOP)/libui/libstx_libui.so: $(TOP)/libui/makefile $(FORCE)
       
   346 	@if [ -f "$(TOP)/libui/.NOSOURCE" ]; then \
       
   347 	    echo "skip make in $(TOP)/libui (no source)"; \
       
   348 	else \
       
   349 	    cd $(TOP)/libui && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES) "; \
       
   350 	fi
       
   351 
       
   352 $(TOP)/libui/makefile: $(TOP)/libui/Make.proto
       
   353 	$(TOP)/rules/stmkmf --cd $(TOP)/libui
       
   354 
       
   355 libstx_libview2.so: $(TOP)/libview2/libstx_libview2.so
       
   356 	ln -sf $(TOP)/libview2/libstx_libview2.so .
       
   357 
       
   358 $(TOP)/libview2/libstx_libview2.so: $(TOP)/libview2/makefile $(FORCE)
       
   359 	@if [ -f "$(TOP)/libview2/.NOSOURCE" ]; then \
       
   360 	    echo "skip make in $(TOP)/libview2 (no source)"; \
       
   361 	else \
       
   362 	    cd $(TOP)/libview2 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES) "; \
       
   363 	fi
       
   364 
       
   365 $(TOP)/libview2/makefile: $(TOP)/libview2/Make.proto
       
   366 	$(TOP)/rules/stmkmf --cd $(TOP)/libview2
       
   367 
       
   368 libstx_libwidg.so: $(TOP)/libwidg/libstx_libwidg.so
       
   369 	ln -sf $(TOP)/libwidg/libstx_libwidg.so .
       
   370 
       
   371 $(TOP)/libwidg/libstx_libwidg.so: $(TOP)/libwidg/makefile $(FORCE)
       
   372 	@if [ -f "$(TOP)/libwidg/.NOSOURCE" ]; then \
       
   373 	    echo "skip make in $(TOP)/libwidg (no source)"; \
       
   374 	else \
       
   375 	    cd $(TOP)/libwidg && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES) "; \
       
   376 	fi
       
   377 
       
   378 $(TOP)/libwidg/makefile: $(TOP)/libwidg/Make.proto
       
   379 	$(TOP)/rules/stmkmf --cd $(TOP)/libwidg
       
   380 
       
   381 libstx_libwidg2.so: $(TOP)/libwidg2/libstx_libwidg2.so
       
   382 	ln -sf $(TOP)/libwidg2/libstx_libwidg2.so .
       
   383 
       
   384 $(TOP)/libwidg2/libstx_libwidg2.so: $(TOP)/libwidg2/makefile $(FORCE)
       
   385 	@if [ -f "$(TOP)/libwidg2/.NOSOURCE" ]; then \
       
   386 	    echo "skip make in $(TOP)/libwidg2 (no source)"; \
       
   387 	else \
       
   388 	    cd $(TOP)/libwidg2 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES) "; \
       
   389 	fi
       
   390 
       
   391 $(TOP)/libwidg2/makefile: $(TOP)/libwidg2/Make.proto
       
   392 	$(TOP)/rules/stmkmf --cd $(TOP)/libwidg2
       
   393 
       
   394 libstx_libwidg3.so: $(TOP)/libwidg3/libstx_libwidg3.so
       
   395 	ln -sf $(TOP)/libwidg3/libstx_libwidg3.so .
       
   396 
       
   397 $(TOP)/libwidg3/libstx_libwidg3.so: $(TOP)/libwidg3/makefile $(FORCE)
       
   398 	@if [ -f "$(TOP)/libwidg3/.NOSOURCE" ]; then \
       
   399 	    echo "skip make in $(TOP)/libwidg3 (no source)"; \
       
   400 	else \
       
   401 	    cd $(TOP)/libwidg3 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES) "; \
       
   402 	fi
       
   403 
       
   404 $(TOP)/libwidg3/makefile: $(TOP)/libwidg3/Make.proto
       
   405 	$(TOP)/rules/stmkmf --cd $(TOP)/libwidg3
       
   406 
       
   407 libstx_libtool.so: $(TOP)/libtool/libstx_libtool.so
       
   408 	ln -sf $(TOP)/libtool/libstx_libtool.so .
       
   409 
       
   410 $(TOP)/libtool/libstx_libtool.so: $(TOP)/libtool/makefile $(FORCE)
       
   411 	@if [ -f "$(TOP)/libtool/.NOSOURCE" ]; then \
       
   412 	    echo "skip make in $(TOP)/libtool (no source)"; \
       
   413 	else \
       
   414 	    cd $(TOP)/libtool && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES) "; \
       
   415 	fi
       
   416 
       
   417 $(TOP)/libtool/makefile: $(TOP)/libtool/Make.proto
       
   418 	$(TOP)/rules/stmkmf --cd $(TOP)/libtool
       
   419 
       
   420 
       
   421 
       
   422 
       
   423 
       
   424 
       
   425 
       
   426 
       
   427 
       
   428 
       
   429 # Enforce recompilation of package definition class if Mercurial working
       
   430 # copy state changes. Together with --guessVersion it ensures that package
       
   431 # definition class always contains correct binary revision string.
       
   432 ifneq (**NOHG**, $(shell hg root 2> /dev/null || echo -n '**NOHG**'))
       
   433 jv_statascripteditor.$(O): $(shell hg root)/.hg/dirstate
       
   434 endif
       
   435 
       
   436 
       
   437 
       
   438 
       
   439 clean::
       
   440 	-rm -f *.so statascripteditor.$(O)
       
   441 
       
   442 clobber:: clean
       
   443 	-rm -f statascripteditor *.img *.sav
       
   444 
       
   445 # BEGINMAKEDEPEND --- do not remove this line; make depend needs it
       
   446 $(OUTDIR)StataScriptEditor.$(O) StataScriptEditor.$(H): StataScriptEditor.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libtool/MultiViewToolApplication.$(H) $(INCLUDE_TOP)/stx/libview2/ApplicationModel.$(H) $(INCLUDE_TOP)/stx/libview2/Model.$(H) $(INCLUDE_TOP)/stx/libview2/ToolApplicationModel.$(H) $(STCHDR)
       
   447 $(OUTDIR)StataScriptEditorMain.$(O) StataScriptEditorMain.$(H): StataScriptEditorMain.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libbasic/StandaloneStartup.$(H) $(STCHDR)
       
   448 $(OUTDIR)StataScriptLogImporter.$(O) StataScriptLogImporter.$(H): StataScriptLogImporter.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
       
   449 $(OUTDIR)StataScriptLogParser.$(O) StataScriptLogParser.$(H): StataScriptLogParser.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
       
   450 $(OUTDIR)jv_statascripteditor.$(O) jv_statascripteditor.$(H): jv_statascripteditor.st $(INCLUDE_TOP)/stx/libbasic/ApplicationDefinition.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libbasic/ProjectDefinition.$(H) $(STCHDR)
       
   451 
       
   452 # ENDMAKEDEPEND --- do not remove this line