summaryrefslogtreecommitdiff
path: root/apps/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'apps/Makefile')
-rw-r--r--apps/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/apps/Makefile b/apps/Makefile
index c19eaa9..cce8207 100644
--- a/apps/Makefile
+++ b/apps/Makefile
@@ -33,7 +33,7 @@ C_OBJS := osc.o \
C_SRCS := $(C_OBJS:%.o=%.c)
-.PHONY: clean distclean install install-bin uninstall remove
+.PHONY: clean distclean install install-bin install-etc uninstall remove remove-bin remove-etc purge
all: $(EXECUTABLE)
@@ -69,8 +69,8 @@ clean:
rm -f *.d.*
rm -f $(EXECUTABLE)
-INSTALL_TARGETS := install-bin
-REMOVE_TARGETS := remove-bin
+INSTALL_TARGETS := install-bin install-etc
+REMOVE_TARGETS := remove-bin remove-etc
install: all $(INSTALL_TARGETS)
@@ -78,9 +78,16 @@ install-bin: $(EXECUTABLE)
$(INSTALL) -d $(DESTDIR)$(BINDIR)
$(INSTALL) -m 755 $(EXECUTABLE) $(DESTDIR)$(BINDIR)
+install-etc:
+
uninstall: remove
remove: $(REMOVE_TARGETS)
remove-bin:
rm -f $(DESTDIR)$(BINDIR)/$(EXECUTABLE)
+
+remove-etc:
+
+purge: remove
+ rm -rf $(DESTDIR)$(ETCDIR)/$(EXECUTABLE)/ \ No newline at end of file