-/* $Id$
-
-This file is part of builder
-Copyright © 2007 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef TARBALL_H_
#define TARBALL_H_
-#include "target.h"
+#include "filetarget.h"
-class TarBall: public Target
+class TarBall: public FileTarget
{
public:
- TarBall(Builder &, const Package &, const std::string & =std::string());
- virtual const char *get_type() const { return "TarBall"; }
- virtual void find_depends();
- virtual Action *build();
-private:
- std::string tarname;
+ TarBall(Builder &, const SourcePackage &, const std::string &);
- std::string create_target_name(const Package &, const std::string &);
+ virtual const char *get_type() const { return "TarBall"; }
+ const SourcePackage *get_package() const;
};
#endif