summaryrefslogtreecommitdiffstats
path: root/bin/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'bin/Makefile')
-rw-r--r--bin/Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/bin/Makefile b/bin/Makefile
new file mode 100644
index 0000000..77158af
--- /dev/null
+++ b/bin/Makefile
@@ -0,0 +1,36 @@
+include ../config.mk
+
+BIN_DIST=acf_cli\
+
+EXTRA_DIST=Makefile
+DISTFILES=$(BIN_DIST) $(EXTRA_DIST)
+
+install_dir=$(DESTDIR)/$(bindir)
+dist_dir=$(DISTDIR)/$(notdir $(PWD))
+
+phony+=all
+all:
+
+phony+=clean
+clean:
+
+phony+=distdir
+distdir: $(DISTFILES)
+ mkdir -p "$(dist_dir)"
+ for i in $(DISTFILES); do\
+ dest=`dirname "$(dist_dir)/$$i"`;\
+ mkdir -p "$$dest";\
+ cp "$$i" "$$dest";\
+ done
+
+phony+=install
+install:
+ mkdir -p $(install_dir)
+ for i in $(BIN_DIST); do\
+ dest=`dirname "$(install_dir)/$$i"`;\
+ mkdir -p "$$dest";\
+ cp "$$i" "$$dest";\
+ done
+ chmod 700 $(install_dir)/acf_cli
+
+.PHONY: $(phony)