## see LICENSE file for licensing information ## INSTALL_DIR = /usr/bin SYS_CFG_DIR = /etc .PHONY: main install check clean uninstall NAME = mktree main : bin/mktree bin/mktree.1.gz bin/mktree.1.gz : doc/mktree.1 @awk -f make.awk $< | gzip -c > $@ bin/mktree : src/main.sh src/args.sh src/util.sh @awk -f make.awk $< > $@ @chmod +x $@ install : main cp bin/$(NAME) $(INSTALL_DIR)/ cp -r def/* $(SYS_CFG_DIR)/mktree/ check : @mkdir -p src inc res bin @[[ -f src/main.sh ]] && echo "Done: Yup, the main file is there." || echo "Error: Were did the script go?" clean : @rm -f bin/* uninstall : rm -f $(INSTALL_DIR)/$(NAME) rm -rf $(SYS_CFG_DIR)/mktree