]> sigrok.org Git - sigrok-dumps.git/blobdiff - Makefile
Add ON Semi CAT24C256 example dump.
[sigrok-dumps.git] / Makefile
index 715d54ac312d89b23276e929243a770cc64cdb9e..349760d1ba50e759f74704f2a583e41532d98117 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
 ##
-## This file is part of the sigrok project.
+## This file is part of the sigrok-dumps project.
 ##
 ## Copyright (C) 2012 Uwe Hermann <uwe@hermann-uwe.de>
 ##
 ## GNU General Public License for more details.
 ##
 ## You should have received a copy of the GNU General Public License
-## along with this program; if not, write to the Free Software
-## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+## along with this program; if not, see <http://www.gnu.org/licenses/>.
 ##
 
-d=`date "+%Y%m%d"`
+VERSION = "0.1.0"
 
-all: tarball
+DESTDIR ?= /usr/local/share/sigrok-dumps
 
-tarball:
+all:
+       @echo "Run 'make dist' to create a tarball."
+
+ChangeLog:
+       git log > ChangeLog || touch ChangeLog
+
+dist: ChangeLog
        @tar -c -v -z --exclude=.git --exclude=Makefile \
-               --exclude=sigrok-dumps-$(d).tar.gz \
-               -f sigrok-dumps-$(d).tar.gz *
+               --exclude=sigrok-dumps-$(VERSION).tar.gz \
+               -f sigrok-dumps-$(VERSION).tar.gz *
+       @rm -f ChangeLog
+
+install:
+       @mkdir -p $(DESTDIR)
+       @cp -r * $(DESTDIR)
+       @rm -f $(DESTDIR)/Makefile