aboutsummaryrefslogtreecommitdiff
path: root/src/filetarget.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-08-01 06:27:43 +0000
committerMike Buland <eichlan@xagasoft.com>2006-08-01 06:27:43 +0000
commit46a3cfdd7b2a77a308a6ac3fbca3b675c4f44fe7 (patch)
tree795ace6809cbba6019f5517b345a5ab20fed5b9a /src/filetarget.h
parent935bc7d5223883d87f58a6798f4a0ade7df95afc (diff)
downloadbuild-46a3cfdd7b2a77a308a6ac3fbca3b675c4f44fe7.tar.gz
build-46a3cfdd7b2a77a308a6ac3fbca3b675c4f44fe7.tar.bz2
build-46a3cfdd7b2a77a308a6ac3fbca3b675c4f44fe7.tar.xz
build-46a3cfdd7b2a77a308a6ac3fbca3b675c4f44fe7.zip
It builds fine, and can build other things as well, like squirrelmud, and clean.
I need to fix the dependancy tracking so that it will only check if it needs to, sort of like pymake. And does each file as it gets to it.
Diffstat (limited to '')
-rw-r--r--src/filetarget.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/filetarget.h b/src/filetarget.h
index c872c0a..856e854 100644
--- a/src/filetarget.h
+++ b/src/filetarget.h
@@ -2,6 +2,10 @@
2#define FILE_TARGET_H 2#define FILE_TARGET_H
3 3
4#include <stdint.h> 4#include <stdint.h>
5#include <map>
6#include <sys/types.h>
7#include <sys/stat.h>
8#include <unistd.h>
5#include "target.h" 9#include "target.h"
6 10
7class FileTarget : public Target 11class FileTarget : public Target
@@ -16,9 +20,12 @@ public:
16 20
17 virtual void check( class Builder &bld ); 21 virtual void check( class Builder &bld );
18 virtual void clean( class Builder &bld ); 22 virtual void clean( class Builder &bld );
23
24 time_t getTime( std::string str );
25 void updateTime( std::string str );
19 26
20private: 27private:
21 // start here with the file time cache 28 std::map<std::string, time_t> mTimes;
22 29
23}; 30};
24 31