]> git.tdb.fi Git - builder.git/blobdiff - source/install.h
Process ObjectFile dependencies correctly even when it's processed before some header...
[builder.git] / source / install.h
index 3c179c6dc71264798bcabef86fd21b13375fece8..2aa3280a75778494e664c0a8562c43e17dd12098 100644 (file)
@@ -1,29 +1,16 @@
 #ifndef INSTALL_H_
 #define INSTALL_H_
 
-#include <msp/core/thread.h>
-#include <msp/path/path.h>
-#include "action.h"
+#include "target.h"
 
-class Install: public Action
+class Install: public Target
 {
 public:
-       Install(const Msp::Path::Path &, const Msp::Path::Path &);
+       Install(Builder &, const Package &, Target &, const std::string &);
+       const char *get_type() const { return "Install"; }
+       void check_rebuild();
+       Action *build();
 private:
-       class Worker: public Msp::Thread
-       {
-       public:
-               Worker(Install &i): install(i), done(false) { launch(); }
-       private:
-               Install &install;
-               bool done;
-
-               void main();
-       };
-
-       Msp::Path::Path src;
-       Msp::Path::Path dest;
-       Worker worker;
 };
 
 #endif