aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index bbddd9d..3e877ac 100644
--- a/Makefile
+++ b/Makefile
@@ -14,17 +14,19 @@ prefix = /usr/local
bindir = $(prefix)/bin
CC = cc
-RM = rm -f
INSTALL = install
all: xwinwrap
-install: xwinwrap
+xwinwrap: main.c Makefile
+ $(CC) $(CFLAGS) $(LDLIBS) -o $@ main.c
+
+install: all
$(INSTALL) -d -m 755 '$(DESTDIR)$(bindir)'
$(INSTALL) xwinwrap '$(DESTDIR)$(bindir)'
clean:
- $(RM) xwinwrap
+ rm -f xwinwrap
uninstall:
rm -f '$(DESTDIR)$(bindir)/xwinwrap'