From cc262554a1078e572813e55ad031e146c33c8573 Mon Sep 17 00:00:00 2001 From: sin Date: Sat, 31 Jan 2015 11:43:33 +0000 Subject: Add uninstall, dist and clean target to Makefile --- Makefile | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7ba18d1..fede34d 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,22 @@ +VERSION = 0.0 PREFIX = /usr/local install: mkdir -p $(DESTDIR)$(PREFIX)/include/fortify - cp -r include/* $(DESTDIR)$(PREFIX)/include/fortify + cp -R include/* $(DESTDIR)$(PREFIX)/include/fortify + +uninstall: + rm -rf $(DESTDIR)$(PREFIX)/include/fortify + +dist: clean + mkdir -p fortify-$(VERSION) + cp -R LICENSE Makefile include fortify-$(VERSION) + tar -cf fortify-$(VERSION).tar fortify-$(VERSION) + gzip fortify-$(VERSION).tar + rm -rf fortify-$(VERSION) + +clean: + rm -f fortify-$(VERSION).tar.gz .PHONY: - install + install uninstall dist clean -- cgit v1.3