aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorProsperousPotato <ProsperousPotato@users.noreply.github.com>2025-07-28 22:05:43 +0100
committerProsperousPotato <ProsperousPotato@users.noreply.github.com>2025-07-28 22:05:43 +0100
commit6a4ae1f372e5d134c6e43247f81508637cdcfce6 (patch)
treecf494425e88ce90116892f5cc5d94a8f28e823fc /Makefile
parent27b589b14bfec5008b2b7b7ec0df0056024099c8 (diff)
change xwinwrap.c to main.c
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'