Browse Source

Add an install target.

David Given 7 years ago
parent
commit
de7023dd61
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Makefile

+ 4 - 0
Makefile

@@ -95,6 +95,10 @@ $(BUILDDIR)/build.$(BUILDSYSTEM): first/ackbuilder.lua Makefile $(BUILD_FILES)
 		CC=$(CC) \
 		> $(BUILDDIR)/build.$(BUILDSYSTEM)
 
+install:
+	mkdir -p $(PREFIX)
+	tar cf - -C $(INSDIR) . | tar xvf - -C $(PREFIX)
+
 clean:
 	@rm -rf $(BUILDDIR)