]> git.tdb.fi Git - builder.git/blobdiff - source/tarball.h
Add tarball building
[builder.git] / source / tarball.h
diff --git a/source/tarball.h b/source/tarball.h
new file mode 100644 (file)
index 0000000..6c36237
--- /dev/null
@@ -0,0 +1,26 @@
+/* $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"
+
+class TarBall: public Target
+{
+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;
+
+       std::string create_target_name(const Package &, const std::string &);
+};
+
+#endif