summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-03-13 04:38:53 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-03-13 04:38:53 (GMT)
commitc3aecc6bc7ec70645e2309a23c7c4ed4677fe72a (patch)
tree46b6f3dd2ba3faabb970a22b07bff5e65bcf0f38 /Makefile
parent33fd3033edccb73143223855f6f6f6305102d9d4 (diff)
fixed configure and makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 19 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index fa8e225..1a0a6d5 100644
--- a/Makefile
+++ b/Makefile
@@ -37,13 +37,15 @@ distclean: clean
clean:
-INSTALL_TARGETS := install-bin install-share
+INSTALL_TARGETS := install-bin install-share install-etc
REMOVE_TARGETS := remove-bin remove-share
+PURGE_TARGETS := remove remove-etc
install: $(INSTALL_TARGETS)
install-bin:
$(INSTALL) -d $(DESTDIR)$(BINDIR)
+ $(INSTALL) -m 755 $(EXECUTABLE) $(DESTDIR)$(BINDIR)
$(INSTALL) -m 755 $(EXECUTABLES) $(DESTDIR)$(BINDIR)
@for exe in $(EXECUTABLES); do \
sed s#/usr/local/share/rhautoimport/#$(SHAREDIR)/$(EXECUTABLE)/#g -i $(DESTDIR)$(BINDIR)/$$exe ; \
@@ -53,12 +55,27 @@ install-share:
$(INSTALL) -d $(DESTDIR)$(SHAREDIR)/$(EXECUTABLE)
$(INSTALL) -m 644 rhautoimport.pm $(DESTDIR)$(SHAREDIR)/$(EXECUTABLE)
+install-etc:
+ $(INSTALL) -d $(DESTDIR)$(ETCDIR)/$(EXECUTABLE)
+ $(INSTALL) -m 644 cron $(DESTDIR)$(ETCDIR)/$(EXECUTABLE)
+
+
uninstall: remove
+
remove: $(REMOVE_TARGETS)
remove-bin:
- rm -f $(DESTDIR)$(BINDIR)/$(EXECUTABLES)
+ rm -f $(DESTDIR)$(BINDIR)/$(EXECUTABLE)
+ @for exe in $(EXECUTABLES); do \
+ rm -f $(DESTDIR)$(BINDIR)/$$exe ; \
+ done
remove-share:
rm -rf $(DESTDIR)$(SHAREDIR)/$(EXECUTABLE)
+
+remove-etc:
+ rm -rf $(DESTDIR)$(ETCDIR)
+
+
+purge: $(PURGE_TARGETS)