]> git.tdb.fi Git - builder.git/blobdiff - source/file.h
Rework the Target class hierarchy
[builder.git] / source / file.h
index 35c10872d14ae5d32ab9ca6252dec2ddf2e154af..19d14af92749a425e2f8268fcb483cc62d9fb0f5 100644 (file)
@@ -1,21 +1,25 @@
 /* $Id$
 
 This file is part of builder
-Copyright © 2007 Mikko Rasa, Mikkosoft Productions
+Copyright © 2007-2009  Mikko Rasa, Mikkosoft Productions
 Distributed under the LGPL
 */
 
 #ifndef FILE_H_
 #define FILE_H_
 
-#include "target.h"
+#include "filetarget.h"
 
-class File: public Target
+/**
+Just a file.  Any file, not attached to a package.
+*/
+class File: public FileTarget
 {
 public:
        File(Builder &, const std::string &);
        virtual const char *get_type() const { return "File"; }
-       virtual Action *build() { return 0; }
+private:
+       virtual Action *create_action() { return 0; }
 };
 
 #endif