全般を修正
[logcat.git] / Makefile
index f72d59e..b3271e7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,16 @@
-.PHONY: build install
+TARGETS := logcat dpkg-history
+
+.PHONY: all install
 
 PREFIX = /usr/local
 INSTALLDIR = $(PREFIX)/bin
 
-ECHO = echo
 INSTALL = install
-build:
-       @$(ECHO) "nothing is needed to build."
 
-install: logcat dpkg-history
-       $(INSTALL) -m 755 logcat $(INSTALLDIR)
-       $(INSTALL) -m 755 dpkg-history $(INSTALLDIR)
+all: $(TARGET)
+
+install: $(TARGETS)
+       for f in $(TARGETS); do $(INSTALL) -m 755 $$f $(INSTALLDIR); done
 
-clean:
-       @$(ECHO) "nothing is needed to clean."
+distclean:
+       $(RM) $(TARGETS)