Ignore:
Timestamp:
Dec 16, 2004, 10:42:39 PM (20 years ago)
Author:
darran
Message:
  • version string now built using Makefile and svnversion commond
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Swollen/swollen/Makefile

    r67 r69  
    3131                    $(OPTIMIZATION)
    3232
     33
     34
    3335%.o : %.cpp
    3436        $(COMPILER) -c $(INCLUDES) $(CPPFLAGS) $< -o $@
     
    3941
    4042
     43.PHONY : version.cpp
     44
     45# on every build, recreate version() string based on SVN revision number
     46version.cpp:
     47        echo -n 'const char* version() { const char* s = "Revision: ' > version.cpp
     48        svnversion -n . >> version.cpp
     49        echo '"; return s; }' >> version.cpp
     50
     51
    4152clean :
    4253        rm -f *.o *~ $(TARGET)
Note: See TracChangeset for help on using the changeset viewer.