]> git.tdb.fi Git - builder.git/blobdiff - source/header.h
Simplify InstalledFile::generate_target_path
[builder.git] / source / header.h
index f52c13b53c0baa3add28731fe007f5c3297ac33f..445fc9c163b32e67caf2318fedf0afdcb34f8c15 100644 (file)
@@ -1,13 +1,7 @@
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2007, 2009  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef HEADER_H_
 #define HEADER_H_
 
+#include "component.h"
 #include "sourcefile.h"
 
 /**
@@ -18,7 +12,7 @@ class Header: public SourceFile
 protected:
        Header(Builder &b, const std::string &f): SourceFile(b, f) { }
 public:
-       Header(Builder &b, const Component &c, const std::string &f): SourceFile(b, c, f) { }
+       Header(Builder &b, const Component &c, const std::string &f): SourceFile(b, c, f) { install_location = "include/"+c.get_name(); }
        virtual const char *get_type() const { return "Header"; }
 };