Skip to content

Commit

Permalink
support 'make install' in binary distributions
Browse files Browse the repository at this point in the history
  • Loading branch information
melsman committed Jan 15, 2021
1 parent 742cd88 commit 10f69c1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,9 @@ bin_dist: src/smlpkg
$(INSTALL) LICENSE $(BIN_DIST_DIR)/
echo 'Binary package for smlpkg.' > $(BIN_DIST_DIR)/README
echo 'The sources are available at http://github.com/diku-dk/smlpkg' >> $(BIN_DIST_DIR)/README
echo 'PREFIX?=/usr/local' > $(BIN_DIST_DIR)/Makefile
echo 'INSTALL?=install' >> $(BIN_DIST_DIR)/Makefile
echo '.PHONY: install' >> $(BIN_DIST_DIR)/Makefile
echo 'install:' >> $(BIN_DIST_DIR)/Makefile
echo "\t"'$$(INSTALL) bin/smlpkg $$(PREFIX)/bin/' >> $(BIN_DIST_DIR)/Makefile
tar czvf $(BIN_DIST_DIR).tgz $(BIN_DIST_DIR)

0 comments on commit 10f69c1

Please sign in to comment.