Max Mahn

aboutsummaryrefslogtreecommitdiff
path: root/def/skel/sh/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'def/skel/sh/Makefile')
-rw-r--r--def/skel/sh/Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/def/skel/sh/Makefile b/def/skel/sh/Makefile
new file mode 100644
index 0000000..3f80df5
--- /dev/null
+++ b/def/skel/sh/Makefile
@@ -0,0 +1,33 @@
+## see LICENSE file for licensing information ##
+
+
+INSTALL_DIR = /usr/bin
+SYS_CFG_DIR = /etc
+
+
+
+.PHONY: main install clean uninstall
+
+NAME = mktree
+
+main : bin/$(NAME) bin/$(NAME).1
+
+bin/mktree.1 : doc/mktree.1
+ @awk -f make.awk $< > $@
+
+bin/mktree : src/main.sh
+ @awk -f make.awk $< > $@
+ @chmod +x $@
+
+install : main
+ cp bin/$(NAME) $(INSTALL_DIR)/
+ cp -r def/skel $(SYS_CFG_DIR)/mktree
+
+clean :
+ @rm -f bin/*
+
+uninstall :
+ rm -f $(INSTALL_DIR)/$(NAME)
+ rm -rf $(SYS_CFG_DIR)/mktree
+
+