Fix of INSTALL problem on cygwin
[fw/sdcc] / sim / ucsim / Makefile
index 23904e79e39430d0db2f4746020787d4257a517d..8426e47e14f466fa2f6355c777eeac3fdee32b92 100644 (file)
@@ -9,7 +9,8 @@ STARTYEAR       = 1997
 SHELL          = /bin/sh
 
 PRJDIR         = .
-PKGS           = cmd.src sim.src s51.src avr.src z80.src gui.src doc
+PKGS           = cmd.src sim.src s51.src avr.src z80.src doc
+#gui.src
 
 srcdir          = .
 
@@ -28,6 +29,7 @@ libs: main.mk
 
 # Compiling and installing everything and runing test
 # ---------------------------------------------------
+.PHONY: install INSTALL Install
 install:
        $(MAKE) -f main.mk install
        @for pkg in $(PKGS); do\
@@ -116,24 +118,31 @@ dep:
 putcopyright:
        'put(c)' -s $(STARTYEAR) *.cc *.h *.y *.l
 
+start:
+       date '+%Y.%m.%d-%H:%M' >.start
+
 newer: distclean
-       @if [ -f start ]; then \
+       @if [ -f .start ]; then \
          tar cvf - \
-           `find . -newer start -type f -print` |\
-         gzip -9c >ucsim-newer-`date '+%Y.%m.%d-%H:%M'`.tgz; \
+           `find . -newer .start -type f -print` |\
+         gzip -9c >ucsim-newer-`cat .start`_`date '+%Y.%m.%d-%H:%M'`_`hostname`.tgz; \
        else \
-         echo "start file not found.\n"; \
+         echo ".start file not found.\n"; \
          exit 1; \
        fi
 
 print-newer:
-       @if [ -f start ]; then \
-         find . -newer start -type f -print ;\
+       @if [ -f .start ]; then \
+         find . -newer .start -type f -print ;\
        else \
-         echo "start file not found.\n" ;\
+         echo ".start file not found.\n" ;\
          exit 1 ;\
        fi
 
+new_files:
+       diff -rNu $$HOME/clean-source/sdcc/sim/ucsim .|\
+       grep '^diff' | grep -v CVS | awk '{print $$4}'
+
 lines:
        @find . \( -name '*.[ch]' -o -name '*.cc' -o -name '*.hh' \) \
        -exec cat {} \; | clines